Skip to content

Commit 3f4c50c

Browse files
committed
chore: use pnpm in release script
1 parent 34e6176 commit 3f4c50c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/release.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async function main() {
8080
step('\nRunning tests...')
8181
if (!skipTests && !isDryRun) {
8282
await run(bin('jest'), ['--clearCache'])
83-
await run('npm', ['test', '--', '--bail'])
83+
await run('pnpm', ['test', '--', '--bail'])
8484
} else {
8585
console.log(`(skipped)`)
8686
}
@@ -92,16 +92,16 @@ async function main() {
9292
// build all packages with types
9393
step('\nBuilding all packages...')
9494
if (!skipBuild && !isDryRun) {
95-
await run('npm', ['run', 'build', '--', '--release'])
95+
await run('pnpm', ['run', 'build', '--', '--release'])
9696
// test generated dts files
9797
step('\nVerifying type declarations...')
98-
await run('npm', ['run', 'test-dts-only'])
98+
await run('pnpm', ['run', 'test-dts-only'])
9999
} else {
100100
console.log(`(skipped)`)
101101
}
102102

103103
// generate changelog
104-
await run(`npm`, ['run', 'changelog'])
104+
await run(`pnpm`, ['run', 'changelog'])
105105

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

0 commit comments

Comments
 (0)