Skip to content

Commit

Permalink
fix problem with CLI: current directory resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
dmstern committed Nov 19, 2018
1 parent 0b0c804 commit de627ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const allowedCliCommands = ['stop', 'logs'];
const command: string[] =
allowedCliCommands.indexOf(firstArg) > -1 ? ['run', firstArg] : startCommand;

const run = execute(`npm`, command);
const run = execute(`npm`, command, { cwd: __dirname, env: process.env });

run.stdout.on('data', data => {
console.log(data.toString());
Expand Down

0 comments on commit de627ff

Please sign in to comment.