Removed cross-spawn dependency

This might fix the "spawn cmd.exe ENOENT" issue on Windows.
This commit is contained in:
Leonard Hecker 2016-04-28 15:57:58 +02:00
parent 2c95334a17
commit f536d97fd6
2 changed files with 1 additions and 9 deletions

View File

@ -125,9 +125,6 @@
"winston": "^2.2.0",
"yaml-front-matter": "^3.2.3"
},
"optionalDependencies": {
"cross-spawn": "^2.0.0"
},
"activationCommands": {
"atom-workspace": [
"atom-beautify:help-debug-editor",

View File

@ -4,12 +4,7 @@ fs = require("fs")
temp = require("temp").track()
readFile = Promise.promisify(fs.readFile)
which = require('which')
# Get optional dependency cross-spawn
spawn = null
try
spawn = require('cross-spawn')
catch err
spawn = require('child_process').spawn
spawn = require('child_process').spawn
module.exports = class Beautifier