Skip to content

Commit

Permalink
chore: use pnpm in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Nov 2, 2021
1 parent 34e6176 commit 3f4c50c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async function main() {
step('\nRunning tests...')
if (!skipTests && !isDryRun) {
await run(bin('jest'), ['--clearCache'])
await run('npm', ['test', '--', '--bail'])
await run('pnpm', ['test', '--', '--bail'])
} else {
console.log(`(skipped)`)
}
Expand All @@ -92,16 +92,16 @@ async function main() {
// build all packages with types
step('\nBuilding all packages...')
if (!skipBuild && !isDryRun) {
await run('npm', ['run', 'build', '--', '--release'])
await run('pnpm', ['run', 'build', '--', '--release'])
// test generated dts files
step('\nVerifying type declarations...')
await run('npm', ['run', 'test-dts-only'])
await run('pnpm', ['run', 'test-dts-only'])
} else {
console.log(`(skipped)`)
}

// generate changelog
await run(`npm`, ['run', 'changelog'])
await run(`pnpm`, ['run', 'changelog'])

const { stdout } = await run('git', ['diff'], { stdio: 'pipe' })
if (stdout) {
Expand Down

0 comments on commit 3f4c50c

Please sign in to comment.