Skip to content

Commit e131671

Browse files
fix: Improved error on failing pnpm install
1 parent c4ce4c9 commit e131671

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/publish/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,13 @@ export const publish = async (options) => {
395395
)
396396
}
397397
if (existsSync(path.resolve(rootDir, 'pnpm-lock.yaml'))) {
398-
console.info('Updating examples to use new package versions...')
399-
execSync('pnpm install')
398+
console.info(' Updating pnpm-lock.yaml...')
399+
try {
400+
execSync('pnpm install')
401+
} catch (/** @type {any} */ err) {
402+
console.error(err.stdout.toString())
403+
process.exit(1)
404+
}
400405
}
401406
}
402407
}

0 commit comments

Comments
 (0)