From f536d97fd6b380807ef7a3c87366c58f8dcf6d61 Mon Sep 17 00:00:00 2001 From: Leonard Hecker Date: Thu, 28 Apr 2016 15:57:58 +0200 Subject: [PATCH] Removed cross-spawn dependency This might fix the "spawn cmd.exe ENOENT" issue on Windows. --- package.json | 3 --- src/beautifiers/beautifier.coffee | 7 +------ 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/package.json b/package.json index 202f706..96b5fc6 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/beautifiers/beautifier.coffee b/src/beautifiers/beautifier.coffee index 62e887b..b0fd696 100644 --- a/src/beautifiers/beautifier.coffee +++ b/src/beautifiers/beautifier.coffee @@ -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