Skip to content

Commit a574887

Browse files
fix: Run pnpm install without frozen lockfile
1 parent 6e6d5fd commit a574887

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/publish/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,9 @@ export const publish = async (options) => {
397397
if (existsSync(path.resolve(rootDir, 'pnpm-lock.yaml'))) {
398398
console.info(' Updating pnpm-lock.yaml...')
399399
try {
400-
execSync('pnpm install')
400+
execSync('pnpm install --no-frozen-lockfile')
401401
} catch (/** @type {any} */ err) {
402-
console.error(err.stdout.toString())
403-
process.exit(1)
402+
throw new Error(err.stdout.toString())
404403
}
405404
}
406405
}

0 commit comments

Comments
 (0)