UNPKG

runtime-eol

Version:
24 lines (18 loc) 705 B
#!/usr/bin/env node const { execSync } = require("child_process"); const runCommand = (cmd, description) => { console.log("\t" + `>> ${description}...`); try { execSync(cmd, { stdio: "inherit" }); console.log("\t" + `Done!`); } catch (error) { console.error("\t" + `❌ Failed: ${error.message}`); process.exit(1); } }; console.log("\n⏩ Starting pre-commit checks... \n"); runCommand("npx eslint", "Running linter"); runCommand("npm outdated", "Checking for outdated dependencies"); runCommand("npm start", "Runtime eol"); //runCommand("npm version patch", "Bumping package version"); console.log("\n✅ All checks completed successfully! ♥️\n");