Skip to content

Commit 0413ff5

Browse files
yyx990803zhangzhonghe
authored andcommitted
chore: avoid double-building types on release
1 parent 53548c0 commit 0413ff5

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

scripts/release.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ async function main() {
110110
if (!skipTests) {
111111
step('\nRunning tests...')
112112
if (!isDryRun) {
113-
await run('pnpm', ['test'])
114-
await run('pnpm', ['test-dts'])
113+
await run('pnpm', ['test', 'run'])
115114
} else {
116115
console.log(`Skipped (dry run)`)
117116
}
@@ -126,11 +125,9 @@ async function main() {
126125
// build all packages with types
127126
step('\nBuilding all packages...')
128127
if (!skipBuild && !isDryRun) {
129-
await run('pnpm', ['run', 'build', '--release'])
130-
await run('pnpm', ['run', 'build-dts'])
131-
// test generated dts files
132-
step('\nVerifying type declarations...')
133-
await run('pnpm', ['run', 'test-dts-only'])
128+
await run('pnpm', ['run', 'build'])
129+
step('\nBuilding and testing types...')
130+
await run('pnpm', ['test-dts'])
134131
} else {
135132
console.log(`(skipped)`)
136133
}

0 commit comments

Comments
 (0)