()
| 32 | } |
| 33 | |
| 34 | async function main() { |
| 35 | // Ask questions and process answers |
| 36 | const confirm = await askConfirmation('❓Do you need to bump a version?(Y/n)').finally(() => { |
| 37 | rl.close() |
| 38 | }) |
| 39 | if (confirm) { |
| 40 | // Run the pnpm changeset command |
| 41 | const changesetProcess = spawn('pnpm', ['changeset'], { stdio: 'inherit', shell: true }) |
| 42 | await new Promise((resolve) => { |
| 43 | changesetProcess.on('close', async (code) => { |
| 44 | resolve(code) |
| 45 | }) |
| 46 | }) |
| 47 | const changesetPath = '.changeset' |
| 48 | await runCommand(`git add ${changesetPath}`) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | main() |
no test coverage detected