From cfa924ef0cc802a4187ed0a76b8aa668551f052c Mon Sep 17 00:00:00 2001 From: eric thul Date: Tue, 24 May 2016 07:46:39 -0400 Subject: [PATCH] Use cross-spawn for windows support Resolves #50 --- package.json | 1 + src/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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') -- 2.41.0