UNPKG

sequelize-auto-migration-generator

Version:
17 lines (13 loc) 379 B
#!/usr/bin/env node const SequelizeAuto = require("sequelize-auto"); const { execSync } = require("child_process"); const runCommand = (command) => { try { execSync(command, { stdio: "inherit" }); } catch (error) { console.error(`Fail to execute command: ${command} `, error); return false; } return true; }; runCommand("npm run testCmd");