Skip to content

Commit 83c8d7c

Browse files
committed
Debug exec environment and how it works
1 parent 13fb151 commit 83c8d7c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/deploy.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ const exec_command = (command) => __awaiter(void 0, void 0, void 0, function* ()
5252
options.env = {
5353
"VERCEL_TOKEN": "process.env.VERCEL_TOKEN"
5454
};
55+
yield exec.exec('echo $PATH');
56+
yield exec.exec('npx -v');
5557
yield exec.exec(command, [], options);
5658
console.log(stdout, stderr);
5759
console.log("Stdout: ", stdout);

src/deploy.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ const exec_command = async (command: string): Promise<string> => {
2727
options.env = {
2828
"VERCEL_TOKEN": "process.env.VERCEL_TOKEN"
2929
}
30+
await exec.exec('echo $PATH');
31+
await exec.exec('npx -v');
3032
await exec.exec(command, [], options);
3133
console.log(stdout, stderr);
3234
console.log("Stdout: ", stdout);

0 commit comments

Comments
 (0)