Removed cross-spawn dependency
This might fix the "spawn cmd.exe ENOENT" issue on Windows.
This commit is contained in:
parent
2c95334a17
commit
f536d97fd6
|
@ -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