Skip to content

Commit 8d33be6

Browse files
committed
workflow: update release script for dts tests
1 parent 51510ad commit 8d33be6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"format": "prettier --write --parser typescript \"packages/**/*.ts?(x)\"",
1313
"ls-lint": "ls-lint",
1414
"test": "node scripts/build.js vue -f global -d && jest",
15-
"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",
15+
"test-dts": "node scripts/build.js shared reactivity runtime-core runtime-dom -dt -f esm-bundler && yarn test-dts-only",
16+
"test-dts-only": "tsc -p ./test-dts/tsconfig.json && tsc -p ./test-dts/tsconfig.build.json",
1617
"release": "node scripts/release.js",
1718
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
1819
"dev-compiler": "npm-run-all --parallel \"dev template-explorer\" serve",

scripts/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async function main() {
9494
await run('yarn', ['build', '--release'])
9595
// test generated dts files
9696
step('\nVerifying type declarations...')
97-
await run(bin('tsd'))
97+
await run('yarn', ['test-dts-only'])
9898
} else {
9999
console.log(`(skipped)`)
100100
}

0 commit comments

Comments
 (0)