Skip to content

Commit 8987913

Browse files
committed
🐛 fix: read of package.json
1 parent 6bc3f5c commit 8987913

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/version.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import { GluegunCommand, GluegunToolbox } from 'gluegun';
22
import { PackageJSON } from 'gluegun/build/types/toolbox/meta-types';
33

4-
import { printCreated } from '../utils/functions.helper';
4+
import { printVersion } from '../utils/functions.helper';
55

66
const COMMAND: GluegunCommand = {
77
name: 'version',
88
alias: ['v', '-v', '--version', '-version'],
99
description: 'Cria um componente Angular de tipo Page',
1010
run: async ({ print }: GluegunToolbox) => {
11-
const packageJson: PackageJSON = require('../package.json');
11+
const packageJson: PackageJSON = require('../../package.json');
1212
const version = packageJson?.version;
13-
printCreated(print, version);
13+
printVersion(print, version);
1414
}
1515
};
1616

0 commit comments

Comments
 (0)