seyfert/_build.js
2024-06-01 19:01:34 +00:00

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()