Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #432 from defjosiah/master
Browse files Browse the repository at this point in the history
Fix ignoring exit code from spawnSync - run-wrangler.js
  • Loading branch information
EverlastingBugstopper authored Aug 13, 2019
2 parents 435ec62 + 5f673be commit 17fcc2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions npm/run-wrangler.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env node

const { join, resolve } = require("path");
const { join } = require("path");
const { spawnSync } = require("child_process");
const { homedir } = require('os');
const { homedir } = require("os");

const cwd = join(homedir(), ".wrangler");
const bin = join(cwd, "out", "wrangler");
Expand All @@ -12,4 +12,4 @@ const opts = {
cwd: process.cwd(),
stdio: "inherit"
};
spawnSync(bin, args, opts);
process.exit(spawnSync(bin, args, opts).status);

0 comments on commit 17fcc2b

Please sign in to comment.