Skip to content

Commit

Permalink
Merge pull request #955 from lhecker/master
Browse files Browse the repository at this point in the history
Removed cross-spawn dependency
  • Loading branch information
Glavin001 committed Apr 28, 2016
2 parents 2c95334 + f536d97 commit 9197bc3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 1 addition & 6 deletions src/beautifiers/beautifier.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9197bc3

Please sign in to comment.