From: Evan You Date: Sun, 5 Feb 2023 08:05:33 +0000 (+0800) Subject: chore: avoid double-building types on release X-Git-Tag: v3.3.0-alpha.2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2df8049aa42e2f9e84729565d6bdb17f6825ac16;p=thirdparty%2Fvuejs%2Fcore.git chore: avoid double-building types on release --- diff --git a/scripts/release.js b/scripts/release.js index 0db3628cd1..d0ad2432cb 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -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)`) }