Skip to content

Commit efad669

Browse files
dominic-pnodkz
authored andcommitted
fix: use cross-spawn to help with Windows issues
* Use cross-spawn to help with Windows issues * Fix editor inserting unneeded space
1 parent e057d0c commit efad669

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/mongodb-memory-server-core/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"homepage": "https://github.com/nodkz/mongodb-memory-server",
2626
"dependencies": {
2727
"camelcase": "^5.3.1",
28+
"cross-spawn": "^6.0.5",
2829
"debug": "^4.1.1",
2930
"decompress": "^4.2.0",
3031
"dedent": "^0.7.0",

packages/mongodb-memory-server-core/src/util/MongoInstance.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { ChildProcess, spawn as spawnChild } from 'child_process';
1+
import { ChildProcess } from 'child_process';
2+
import { default as spawnChild } from 'cross-spawn';
23
import path from 'path';
34
import MongoBinary from './MongoBinary';
45
import { MongoBinaryOpts } from './MongoBinary';

0 commit comments

Comments
 (0)