mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 13:06:08 +00:00
26 lines
427 B
JavaScript
26 lines
427 B
JavaScript
const { execSync } = require("child_process");
|
|
|
|
const commands = [
|
|
'tsc',
|
|
'bunx tsc',
|
|
'npx tsc',
|
|
'pnpx tsc'
|
|
]
|
|
|
|
function executeCommands() {
|
|
for (const cmd of commands) {
|
|
try {
|
|
console.log('[Seyfert]:', 'trying to build with `', cmd, '`')
|
|
execSync(cmd)
|
|
} catch (e) {
|
|
if (cmd === commands.at(-1)) {
|
|
return console.log('[Seyfert]:', e)
|
|
}
|
|
}
|
|
}
|
|
|
|
console.log('[Seyfert]:', 'builded')
|
|
}
|
|
|
|
executeCommands()
|