Skip to content
This repository was archived by the owner on Jul 9, 2021. It is now read-only.

Commit 528c86d

Browse files
committed
[fixed] used cross-spawn instead of child_process in NativeProcess for compatibility with the Windows operating system
1 parent bc50d39 commit 528c86d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"cheerio": "^0.22.0",
8181
"clean-stack": "^1.1.1",
8282
"codemirror": "^5.23.0",
83+
"cross-spawn": "^5.0.1",
8384
"docdash": "^0.4.0",
8485
"error-stack-parser": "^2.0.0",
8586
"eslint": "^3.15.0",

src/NativeProcess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* @flow */
22

33
import type {StringOrErrorCallback} from './typedef';
4-
import {spawn} from 'child_process';
4+
import spawn from 'cross-spawn';
55
import noop from 'lodash/noop';
66

77
const errorPattern = /([^\s]*Error): (.*)[\s\S]*/;

0 commit comments

Comments
 (0)