Skip to content

Commit

Permalink
🤖 CI: Prerelease: 0.0.11-0
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Action committed Mar 29, 2024
1 parent e708f90 commit 3c25b85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports.exec = void 0;
const child_process_1 = __importDefault(require("child_process"));
const console_1 = require("console");
const which_1 = __importDefault(require("which"));
const exec = (argv) => {
const exec = (workingDirectory, argv) => {
return new Promise(async (resolve, reject) => {
const env = {
...process.env,
Expand All @@ -17,19 +17,19 @@ const exec = (argv) => {
command = which_1.default.sync(argv[0]);
}
catch (e) {
reject(new Error(`Unable to locate the '${argv[0]}' command on this system. Were dependencies installed?`));
reject(new Error(`Unable to locate the \`${argv[0]}\` command on this system.`));
return;
}
const p = child_process_1.default.spawn(`"${command}"`, argv.slice(1), {
cwd: workingDirectory,
shell: true,
env,
});
p.on("error", (err) => {
(0, console_1.error)(`Error: ${err}`);
(0, console_1.error)(err);
reject(err);
});
p.on("exit", () => {
(0, console_1.debug)("Command exited");
resolve();
});
p.stdin.pipe(process.stdin);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-scaffoldly-app",
"version": "0.0.10",
"version": "0.0.11-0",
"engines": {
"node": ">=18"
},
Expand Down

0 comments on commit 3c25b85

Please sign in to comment.