mirror of https://github.com/vuejs/core.git
chore: avoid double-building types on release
This commit is contained in:
parent
5851eaa933
commit
2df8049aa4
|
@ -110,8 +110,7 @@ async function main() {
|
||||||
if (!skipTests) {
|
if (!skipTests) {
|
||||||
step('\nRunning tests...')
|
step('\nRunning tests...')
|
||||||
if (!isDryRun) {
|
if (!isDryRun) {
|
||||||
await run('pnpm', ['test'])
|
await run('pnpm', ['test', 'run'])
|
||||||
await run('pnpm', ['test-dts'])
|
|
||||||
} else {
|
} else {
|
||||||
console.log(`Skipped (dry run)`)
|
console.log(`Skipped (dry run)`)
|
||||||
}
|
}
|
||||||
|
@ -126,11 +125,9 @@ async function main() {
|
||||||
// build all packages with types
|
// build all packages with types
|
||||||
step('\nBuilding all packages...')
|
step('\nBuilding all packages...')
|
||||||
if (!skipBuild && !isDryRun) {
|
if (!skipBuild && !isDryRun) {
|
||||||
await run('pnpm', ['run', 'build', '--release'])
|
await run('pnpm', ['run', 'build'])
|
||||||
await run('pnpm', ['run', 'build-dts'])
|
step('\nBuilding and testing types...')
|
||||||
// test generated dts files
|
await run('pnpm', ['test-dts'])
|
||||||
step('\nVerifying type declarations...')
|
|
||||||
await run('pnpm', ['run', 'test-dts-only'])
|
|
||||||
} else {
|
} else {
|
||||||
console.log(`(skipped)`)
|
console.log(`(skipped)`)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue