]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: avoid double-building types on release
authorEvan You <yyx990803@gmail.com>
Sun, 5 Feb 2023 08:05:33 +0000 (16:05 +0800)
committerEvan You <yyx990803@gmail.com>
Sun, 5 Feb 2023 08:21:22 +0000 (16:21 +0800)
scripts/release.js

index 0db3628cd1242b3e69b5f3e67b85c01fdf2a3b73..d0ad2432cbd195259d2465703303a95dcd444991 100644 (file)
@@ -110,8 +110,7 @@ async function main() {
   if (!skipTests) {
     step('\nRunning tests...')
     if (!isDryRun) {
-      await run('pnpm', ['test'])
-      await run('pnpm', ['test-dts'])
+      await run('pnpm', ['test', 'run'])
     } else {
       console.log(`Skipped (dry run)`)
     }
@@ -126,11 +125,9 @@ async function main() {
   // build all packages with types
   step('\nBuilding all packages...')
   if (!skipBuild && !isDryRun) {
-    await run('pnpm', ['run', 'build', '--release'])
-    await run('pnpm', ['run', 'build-dts'])
-    // test generated dts files
-    step('\nVerifying type declarations...')
-    await run('pnpm', ['run', 'test-dts-only'])
+    await run('pnpm', ['run', 'build'])
+    step('\nBuilding and testing types...')
+    await run('pnpm', ['test-dts'])
   } else {
     console.log(`(skipped)`)
   }