aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoreric thul <thul.eric@gmail.com>2016-05-24 07:46:39 -0400
committereric thul <thul.eric@gmail.com>2016-05-24 07:47:27 -0400
commitcfa924ef0cc802a4187ed0a76b8aa668551f052c (patch)
tree1ce4712a58f6539e22e6388895a76443a12064c9
parentca6262710e2ed6ce6815acd9fe729a0ec5bba1b6 (diff)
downloadpurs-loader-cfa924ef0cc802a4187ed0a76b8aa668551f052c.tar.gz
purs-loader-cfa924ef0cc802a4187ed0a76b8aa668551f052c.tar.zst
purs-loader-cfa924ef0cc802a4187ed0a76b8aa668551f052c.zip
Use cross-spawn for windows support
Resolves #50
-rw-r--r--package.json1
-rw-r--r--src/index.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json
index 3bdd5ec..4924fc3 100644
--- a/package.json
+++ b/package.json
@@ -41,6 +41,7 @@
41 "dependencies": { 41 "dependencies": {
42 "bluebird": "^3.3.5", 42 "bluebird": "^3.3.5",
43 "chalk": "^1.1.3", 43 "chalk": "^1.1.3",
44 "cross-spawn": "^3.0.1",
44 "debug": "^2.2.0", 45 "debug": "^2.2.0",
45 "globby": "^4.0.0", 46 "globby": "^4.0.0",
46 "loader-utils": "^0.2.14", 47 "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')
6const globby = require('globby') 6const globby = require('globby')
7const Promise = require('bluebird') 7const Promise = require('bluebird')
8const fs = Promise.promisifyAll(require('fs')) 8const fs = Promise.promisifyAll(require('fs'))
9const spawn = require('child_process').spawn 9const spawn = require('cross-spawn')
10const path = require('path') 10const path = require('path')
11const retryPromise = require('promise-retry') 11const retryPromise = require('promise-retry')
12 12