From: eric thul Date: Tue, 24 May 2016 11:46:39 +0000 (-0400) Subject: Use cross-spawn for windows support X-Git-Tag: 1.0.0-rc.1~2^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=cfa924ef0cc802a4187ed0a76b8aa668551f052c;p=github%2Ffretlink%2Fpurs-loader.git Use cross-spawn for windows support Resolves #50 --- diff --git a/package.json b/package.json index 3bdd5ec..4924fc3 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "dependencies": { "bluebird": "^3.3.5", "chalk": "^1.1.3", + "cross-spawn": "^3.0.1", "debug": "^2.2.0", "globby": "^4.0.0", "loader-utils": "^0.2.14", diff --git a/src/index.js b/src/index.js index bd2a35d..6bf1e09 100644 --- a/src/index.js +++ b/src/index.js @@ -6,7 +6,7 @@ const loaderUtils = require('loader-utils') const globby = require('globby') const Promise = require('bluebird') const fs = Promise.promisifyAll(require('fs')) -const spawn = require('child_process').spawn +const spawn = require('cross-spawn') const path = require('path') const retryPromise = require('promise-retry')