Skip to content

Commit

Permalink
Merge pull request #378 from jakobo/jakobo/377/spawn_windows
Browse files Browse the repository at this point in the history
fix: Allows urql-devtools to launch via Windows PowerShell
  • Loading branch information
andyrichardson authored Nov 12, 2021
2 parents 1e29299 + 29abd73 commit 9a9aa5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cli.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env node
const { spawn } = require("child_process");
spawn("npm", ["start"], { stdio: "inherit", cwd: `${__dirname}/..` });
spawn(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', ["start"], { stdio: "inherit", cwd: `${__dirname}/..` });

0 comments on commit 9a9aa5a

Please sign in to comment.