Skip to content

Commit

Permalink
Merge pull request #2 from jlaramie/develop
Browse files Browse the repository at this point in the history
Fix for calling 'npm' using child process spawn. See https://github.c…
  • Loading branch information
andrewphahn authored Jul 1, 2018
2 parents d2e8e85 + 0a2c97c commit 086c534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class ServerlessFullstackPlugin {

performClientGeneration(command, args, clientSrcPath, resolve, reject) {
this.serverless.cli.log(`Generating client...`);
const proc = spawn(command, args, {cwd: clientSrcPath, env: process.env});
const proc = spawn(command, args, {cwd: clientSrcPath, env: process.env, shell: true});

proc.stdout.on('data', (data) => {
const printableData = data ? `${data}`.trim() : '';
Expand Down

0 comments on commit 086c534

Please sign in to comment.