Skip to content

Commit 98ae02c

Browse files
authored
chore: add shell flag to prepare script (#2646)
1 parent 43c94b6 commit 98ae02c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

etc/prepare.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#! /usr/bin/env node
22
var cp = require('child_process');
33
var fs = require('fs');
4+
var os = require('os');
45

56
if (fs.existsSync('src')) {
6-
cp.spawn('npm', ['run', 'build:dts'], { stdio: 'inherit' });
7+
cp.spawn('npm', ['run', 'build:dts'], { stdio: 'inherit', shell: os.platform() === 'win32' });
78
} else {
89
if (!fs.existsSync('lib')) {
910
console.warn('MongoDB: No compiled javascript present, the driver is not installed correctly.');

0 commit comments

Comments
 (0)