Merge pull request #955 from lhecker/master

Removed cross-spawn dependency
This commit is contained in:
Glavin Wiechert 2016-04-28 15:00:22 -03:00
commit 9197bc3a3c
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