Skip to content

Commit

Permalink
Fixed issue with child_process.spaw on windows by using cross-spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian Khosravi committed Dec 12, 2018
1 parent 8755029 commit d1e93d5
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
Bugfixes

- fixed typo in documentation
- cli
- Fixed issue with child_process.spaw on windows by using cross-spawn. (https://stackoverflow.com/questions/37459717/error-spawn-enoent-on-windows)

---

Expand Down
2 changes: 1 addition & 1 deletion cli-tools/cli/lib/git/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const spawn = require('child_process').spawn;
const spawn = require('cross-spawn');
const chalk = require('chalk');
const rimraf = require('rimraf');
const path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion cli-tools/cli/lib/npm/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const spawn = require('child_process').spawn;
const spawn = require('cross-spawn');
const path = require('path');
const fs = require('fs');
const chalk = require('chalk');
Expand Down
61 changes: 61 additions & 0 deletions cli-tools/cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion cli-tools/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aofl/cli",
"version": "1.3.0",
"version": "1.3.1-pre.1",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -22,6 +22,7 @@
"chalk": "^2.4.1",
"cli-table": "^0.3.1",
"commander": "^2.16.0",
"cross-spawn": "^6.0.5",
"esprima": "^4.0.1",
"fast-glob": "^2.2.2",
"fs-extra": "^7.0.0",
Expand Down

0 comments on commit d1e93d5

Please # to comment.