MCPcopy Create free account
hub / github.com/alovajs/devtools / main

Function main

scripts/bump-version.ts:34–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34async 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
52main()

Callers 1

bump-version.tsFile · 0.70

Calls 2

askConfirmationFunction · 0.85
runCommandFunction · 0.85

Tested by

no test coverage detected