]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: use pnpm in release script
authorEvan You <yyx990803@gmail.com>
Tue, 2 Nov 2021 06:31:38 +0000 (14:31 +0800)
committerEvan You <yyx990803@gmail.com>
Tue, 2 Nov 2021 06:31:38 +0000 (14:31 +0800)
scripts/release.js

index c932d87991dd9246c77928788804ad8e49c0faf5..e8128d2fc482f312d5bfc012cc4d57925115ae9b 100644 (file)
@@ -80,7 +80,7 @@ async function main() {
   step('\nRunning tests...')
   if (!skipTests && !isDryRun) {
     await run(bin('jest'), ['--clearCache'])
-    await run('npm', ['test', '--', '--bail'])
+    await run('pnpm', ['test', '--', '--bail'])
   } else {
     console.log(`(skipped)`)
   }
@@ -92,16 +92,16 @@ async function main() {
   // build all packages with types
   step('\nBuilding all packages...')
   if (!skipBuild && !isDryRun) {
-    await run('npm', ['run', 'build', '--', '--release'])
+    await run('pnpm', ['run', 'build', '--', '--release'])
     // test generated dts files
     step('\nVerifying type declarations...')
-    await run('npm', ['run', 'test-dts-only'])
+    await run('pnpm', ['run', 'test-dts-only'])
   } else {
     console.log(`(skipped)`)
   }
 
   // generate changelog
-  await run(`npm`, ['run', 'changelog'])
+  await run(`pnpm`, ['run', 'changelog'])
 
   const { stdout } = await run('git', ['diff'], { stdio: 'pipe' })
   if (stdout) {