]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
chore(postversion): use `const` instead of `let` (#700)
authortommyhu <129492208+hiTommyhu@users.noreply.github.com>
Fri, 28 Feb 2025 14:50:12 +0000 (22:50 +0800)
committerGitHub <noreply@github.com>
Fri, 28 Feb 2025 14:50:12 +0000 (22:50 +0800)
scripts/postversion.mjs

index e253475df481c60f221d9f2d48bdc14057d6402e..4d569fb0100c2decc33a3c0e5d5dfa4f3c166042 100644 (file)
@@ -6,7 +6,7 @@ $.verbose = true
 await $`pnpm build`
 await $`pnpm snapshot`
 
-let { version } = JSON.parse(await fs.readFile('./package.json'))
+const { version } = JSON.parse(await fs.readFile('./package.json'))
 
 const playgroundDir = path.resolve(__dirname, '../playground/')
 cd(playgroundDir)