Skip to content

Commit 83610d8

Browse files
committed
🐛 fix(eslint): es6 import to commonjs
1 parent 435e1da commit 83610d8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/commands/ngx-devs-cli.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { GluegunCommand } from 'gluegun';
22

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

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

1514
print.info(ASCII_ART);
1615
printVersion(print, version);

src/commands/version.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import { GluegunCommand, GluegunToolbox } from 'gluegun';
22

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

65
const COMMAND: GluegunCommand = {
76
name: 'version',
87
alias: ['v', '-v', '--version', '-version'],
98
description: 'Mostra a versão do NgxDevs',
109
run: async ({ print }: GluegunToolbox) => {
11-
const version = packageJson?.version;
10+
const version = require('../../package.json').version;
1211
printVersion(print, version);
1312
}
1413
};

0 commit comments

Comments
 (0)