Skip to content

Commit

Permalink
🐛 fix(eslint): es6 import to commonjs
Browse files Browse the repository at this point in the history
  • Loading branch information
gleisonkz committed May 28, 2022
1 parent 435e1da commit 83610d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/commands/ngx-devs-cli.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { GluegunCommand } from 'gluegun';

import * as packageJson from '../../package.json';
import { ASCII_ART } from '../utils/cli-ascii.const';
import { printVersion } from '../utils/functions.helper';

Expand All @@ -10,7 +9,7 @@ const COMMAND: GluegunCommand = {
description: 'Inicializa a CLI do NgxDevs',
run: async (toolbox) => {
const { print } = toolbox;
const version = packageJson.version;
const version = require('../../package.json').version;

print.info(ASCII_ART);
printVersion(print, version);
Expand Down
3 changes: 1 addition & 2 deletions src/commands/version.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { GluegunCommand, GluegunToolbox } from 'gluegun';

import * as packageJson from '../../package.json';
import { printVersion } from '../utils/functions.helper';

const COMMAND: GluegunCommand = {
name: 'version',
alias: ['v', '-v', '--version', '-version'],
description: 'Mostra a versão do NgxDevs',
run: async ({ print }: GluegunToolbox) => {
const version = packageJson?.version;
const version = require('../../package.json').version;
printVersion(print, version);
}
};
Expand Down

0 comments on commit 83610d8

Please sign in to comment.