From: btea <2356281422@qq.com> Date: Thu, 3 Apr 2025 07:41:19 +0000 (+0800) Subject: refactor: use import attributes instead of assert X-Git-Tag: v3.16.4~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3498eb178d3f191b52593235dd0ca8691708c020;p=thirdparty%2Fvuejs%2Fcreate-vue.git refactor: use import attributes instead of assert --- diff --git a/index.ts b/index.ts index a4862f5a..123cb430 100755 --- 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)))