node-ff
Version:
A CLI for creating NodeJs projects
20 lines • 595 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExecSync = void 0;
const child_process_1 = require("child_process");
class ExecSync {
exec({ commands }) {
if (typeof commands === 'object') {
this.execObj({ commands });
}
else {
(0, child_process_1.execSync)(commands);
}
}
execObj({ commands }) {
const commandsArray = commands;
commandsArray.forEach((element) => (0, child_process_1.execSync)(element));
}
}
exports.ExecSync = ExecSync;
//# sourceMappingURL=exec.js.map