Skip to content

Commit

Permalink
chore: remove json assertion (for stub mode)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 10, 2025
1 parent cf33224 commit 24a2df2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { readPackageJSON } from 'pkg-types'
import { splitByCase } from 'scule'
import { isMinimal } from 'std-env'

import { version as nuxiVersion } from '../../package.json' assert { type: 'json' }
import { version as nuxiVersion } from '../../package.json'

import { tryResolveNuxt } from '../utils/kit'
import { logger } from '../utils/logger'
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import process from 'node:process'
import { defineCommand } from 'citty'
import { provider } from 'std-env'

import { description, name, version } from '../package.json' assert { type: 'json' }
import { description, name, version } from '../package.json'
import { commands } from './commands'
import { cwdArgs } from './commands/_shared'
import { setupGlobalConsole } from './utils/console'
Expand Down Expand Up @@ -55,6 +55,7 @@ export const main = defineCommand({
})
}
catch (err) {
// TODO: use windows err code as well
if (err instanceof Error && 'code' in err && err.code === 'ENOENT') {
return
}
Expand Down

0 comments on commit 24a2df2

Please sign in to comment.