File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { resolve } from 'pathe'
1212import { readPackageJSON } from 'pkg-types'
1313import { splitByCase } from 'scule'
1414
15- import nuxiPkg from '../../package.json' assert { type : 'json' }
15+ import { version as nuxiVersion } from '../../package.json' assert { type : 'json' }
1616
1717import { tryResolveNuxt } from '../utils/kit'
1818import { logger } from '../utils/logger'
@@ -90,7 +90,7 @@ export default defineCommand({
9090 OperatingSystem : os . type ( ) ,
9191 NodeVersion : process . version ,
9292 NuxtVersion : nuxtVersion ,
93- CLIVersion : nuxiPkg . version ,
93+ CLIVersion : nuxiVersion ,
9494 NitroVersion : await getDepVersion ( 'nitropack' ) ,
9595 PackageManager : packageManager ?? 'unknown' ,
9696 Builder : typeof builder === 'string' ? builder : 'custom' ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import process from 'node:process'
44import { defineCommand } from 'citty'
55import { provider } from 'std-env'
66
7- import nuxiPkg from '../package.json' assert { type : 'json' }
7+ import { description , name , version } from '../package.json' assert { type : 'json' }
88import { commands } from './commands'
99import { cwdArgs } from './commands/_shared'
1010import { setupGlobalConsole } from './utils/console'
@@ -13,9 +13,9 @@ import { logger } from './utils/logger'
1313
1414export const main = defineCommand ( {
1515 meta : {
16- name : nuxiPkg . name ,
17- version : nuxiPkg . version ,
18- description : nuxiPkg . description ,
16+ name,
17+ version,
18+ description,
1919 } ,
2020 args : {
2121 ...cwdArgs ,
You can’t perform that action at this time.
0 commit comments