From 8d33be6ae4c64bc1770aa8579a7b1c26618951e5 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 12 Jun 2020 18:03:51 -0400 Subject: [PATCH] workflow: update release script for dts tests --- package.json | 3 ++- scripts/release.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5aa08308..dbbc8a06 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "format": "prettier --write --parser typescript \"packages/**/*.ts?(x)\"", "ls-lint": "ls-lint", "test": "node scripts/build.js vue -f global -d && jest", - "test-dts": "node scripts/build.js shared reactivity runtime-core runtime-dom -dt -f esm-bundler && tsc -p ./test-dts/tsconfig.json && tsc -p ./test-dts/tsconfig.build.json", + "test-dts": "node scripts/build.js shared reactivity runtime-core runtime-dom -dt -f esm-bundler && yarn test-dts-only", + "test-dts-only": "tsc -p ./test-dts/tsconfig.json && tsc -p ./test-dts/tsconfig.build.json", "release": "node scripts/release.js", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", "dev-compiler": "npm-run-all --parallel \"dev template-explorer\" serve", diff --git a/scripts/release.js b/scripts/release.js index 50d4181e..88a6941f 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -94,7 +94,7 @@ async function main() { await run('yarn', ['build', '--release']) // test generated dts files step('\nVerifying type declarations...') - await run(bin('tsd')) + await run('yarn', ['test-dts-only']) } else { console.log(`(skipped)`) }