We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
npm pack
1 parent a6d8bae commit ee269d4Copy full SHA for ee269d4
scripts/release.mts
@@ -20,6 +20,9 @@ async function release() {
20
console.log(cyan('Building...'))
21
spawn.sync('pnpm', ['build'], { stdio: 'inherit' })
22
23
+ console.log(cyan('Packing...'))
24
+ spawn.sync('npm', ['pack'], { stdio: 'inherit' })
25
+
26
const pkg = JSON.parse(fs.readFileSync('./package.json', 'utf-8'))
27
const { version: currentVersion } = pkg
28
@@ -65,9 +68,6 @@ async function release() {
65
68
throw new Error(`invalid target version: ${targetVersion}`)
66
69
}
67
70
- console.log(cyan('Packing...'))
- spawn.sync('npm', ['pack'], { stdio: 'inherit' })
-
71
const { yes } = await prompts({
72
type: 'confirm',
73
name: 'yes',
0 commit comments