Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 5a42e32

Browse files
author
Dimitar Kerezov
committed
Minor fix
Fix `cwd` parameter name. Remove `shell: true` becuase it causes issues on windows.
1 parent 3507346 commit 5a42e32

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

‎bin/ns-bundle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ function spawnChildProcess(command, ...args) {
225225

226226
const childProcess = spawn(command, escapedArgs, {
227227
stdio: "inherit",
228-
pwd: PROJECT_DIR,
228+
cwd: PROJECT_DIR,
229229
shell: true,
230230
});
231231

‎lib/compiler.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ exports.runWebpackCompiler = function runWebpackCompiler(config, $mobileHelper,
7070
// These will notify us for the webpack compilation states.
7171
// Enables `childProcess.on("message", msg => ...)` kind of communication.
7272
stdio: config.watch ? ["inherit", "inherit", "inherit", "ipc"] : "inherit",
73-
pwd: $projectData.projectDir,
74-
shell: true,
73+
cwd: $projectData.projectDir
7574
});
7675

7776
function resolveOnWebpackCompilationComplete(message) {

‎verify/update.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function execute(command) {
6969
return new Promise((resolve, reject) => {
7070
const args = command.split(" ");
7171
spawnChildProcess(...args)
72-
.then(resolve)
72+
.then(resolve)
7373
.catch(throwError)
7474
});
7575
}
@@ -80,7 +80,7 @@ function spawnChildProcess(command, ...args) {
8080

8181
const childProcess = spawn(command, escapedArgs, {
8282
stdio: "inherit",
83-
pwd: PROJECT_DIR,
83+
cwd: PROJECT_DIR,
8484
shell: true,
8585
});
8686

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /