edacation
Version:
Library and CLI for interacting with Yosys and nextpnr.
18 lines • 536 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.executeTool = void 0;
const child_process_1 = require("child_process");
const executeTool = (tool, args, cwd) => new Promise((resolve, reject) => {
const p = (0, child_process_1.spawn)(tool, args, {
cwd,
stdio: ['pipe', 'inherit', 'inherit']
});
p.on('error', (err) => {
reject(err);
});
p.on('exit', () => {
resolve();
});
});
exports.executeTool = executeTool;
//# sourceMappingURL=tool.js.map