From 739af3da605f29d2b0cf0173c7732e75287b1b4b Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 17 May 2022 12:47:43 +0800 Subject: [PATCH] workflow: fix release script for pnpm 7 [ci skip] --- scripts/release.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release.js b/scripts/release.js index 05f05f76..b47f075b 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -80,7 +80,7 @@ async function main() { step('\nRunning tests...') if (!skipTests && !isDryRun) { await run(bin('jest'), ['--clearCache']) - await run('pnpm', ['test', '--', '--bail']) + await run('pnpm', ['test', '--bail']) } else { console.log(`(skipped)`) } @@ -92,7 +92,7 @@ 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', '--release']) // test generated dts files step('\nVerifying type declarations...') await run('pnpm', ['run', 'test-dts-only'])