0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix: version lifecycle script (#2832)

This commit is contained in:
Gao Sun 2023-01-06 16:33:08 +08:00
parent 9c1b3d77aa
commit df9e98dcef
No known key found for this signature in database
GPG key ID: 13EBE123E4773688
2 changed files with 16 additions and 4 deletions

View file

@ -0,0 +1,7 @@
---
"@logto/cli": patch
"@logto/create": patch
"@logto/schemas": patch
---
Fix version lifecycle script

View file

@ -33,9 +33,14 @@ const ignoreCmd = getIgnoreGroup()
.join('');
const cmd = ('pnpm changeset version' + ignoreCmd);
console.log(cmd);
await execAsync(cmd).catch(({ stderr, code }) => {
const catchCmdError = ({ stderr, code }) => {
console.error(stderr);
process.exit(code ?? 1);
});
};
console.log(cmd);
await execAsync(cmd).catch(catchCmdError);
// Manually run lifecycle script since changesets didn't
await execAsync('pnpm -r version').catch(catchCmdError);