Skip to content

Commit acb6130

Browse files
committed
chore: use json assertion
1 parent 4c78650 commit acb6130

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { detectPackageManager } from 'nypm'
1313
import { getPackageManagerVersion } from '../utils/packageManagers'
1414
import { findup } from '../utils/fs'
1515

16-
import nuxiPkg from '../../package.json'
16+
import nuxiPkg from '../../package.json' assert { type: 'json' }
1717
import { cwdArgs, legacyRootDirArgs } from './_shared'
1818

1919
export default defineCommand({

src/utils/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { $fetch } from 'ofetch'
22
import { cyan, green, yellow, underline } from 'colorette'
33
import { consola } from 'consola'
44
import * as semver from 'semver'
5-
import nuxiPkg from '../../package.json'
5+
import nuxiPkg from '../../package.json' assert { type: 'json' }
66

77
export async function checkForUpdates() {
88
if (process.env.SKIP_NUXT_UPDATE_CHECK) {

0 commit comments

Comments
 (0)