prism-tui PoC

This commit is contained in:
Boof2015
2026-08-14 13:37:16 -04:00
parent 1a0185306a
commit 7047df3e38
41 changed files with 1995 additions and 635 deletions
+17
View File
@@ -0,0 +1,17 @@
const { spawnSync } = require('node:child_process')
const scriptByPlatform = {
darwin: 'dist:mac',
linux: 'dist:linux',
win32: 'dist:win',
}
const script = scriptByPlatform[process.platform]
if (!script) {
console.error(`Packaging is not configured for ${process.platform}.`)
process.exit(1)
}
const npmCommand = process.platform === 'win32' ? 'npm.cmd' : 'npm'
const result = spawnSync(npmCommand, ['run', script], { stdio: 'inherit' })
process.exit(result.status ?? 1)