We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d2d168 commit 70b7932Copy full SHA for 70b7932
src/console.ts
@@ -1,12 +1,12 @@
1
import { vice } from 'gradient-string';
2
import { isSilent } from './generi';
3
+import { getPackage } from './utils';
4
import consola from 'consola';
-import pkg from '../package.json';
5
6
export const getHeader = (command: string) => {
7
if (isSilent()) return;
8
9
- const title = `Generi ${pkg.version} | ${command}`;
+ const title = `Generi ${getPackage().version} | ${command}`;
10
consola.log(vice(title));
11
consola.log(vice('■'.repeat(title.length)));
12
consola.log('\n');
0 commit comments