Skip to content

Commit 70b7932

Browse files
committed
fix(console): get pkg from root generi config file
1 parent 5d2d168 commit 70b7932

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/console.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { vice } from 'gradient-string';
22
import { isSilent } from './generi';
3+
import { getPackage } from './utils';
34
import consola from 'consola';
4-
import pkg from '../package.json';
55

66
export const getHeader = (command: string) => {
77
if (isSilent()) return;
88

9-
const title = `Generi ${pkg.version} | ${command}`;
9+
const title = `Generi ${getPackage().version} | ${command}`;
1010
consola.log(vice(title));
1111
consola.log(vice('■'.repeat(title.length)));
1212
consola.log('\n');

0 commit comments

Comments
 (0)