]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
refactor: use import attributes instead of assert
authorbtea <2356281422@qq.com>
Thu, 3 Apr 2025 07:41:19 +0000 (15:41 +0800)
committerCédric Exbrayat <cexbrayat@users.noreply.github.com>
Thu, 3 Apr 2025 09:38:34 +0000 (11:38 +0200)
index.ts

index a4862f5ac5b87a7fbcec616ef2ec9295dd9a6b52..123cb430dbe80a1c082576bf15648b58bda049b3 100755 (executable)
--- a/index.ts
+++ b/index.ts
@@ -19,7 +19,7 @@ import getLanguage from './utils/getLanguage'
 import renderEslint from './utils/renderEslint'
 import { trimBoilerplate, removeCSSImport, emptyRouterConfig } from './utils/trimBoilerplate'
 
-import cliPackageJson from './package.json'
+import cliPackageJson from './package.json' with { type: 'json' }
 
 const language = await getLanguage(fileURLToPath(new URL('./locales', import.meta.url)))