Merge pull request #955 from lhecker/master
Removed cross-spawn dependency
This commit is contained in:
commit
9197bc3a3c
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue