Skip to content

Commit

Permalink
eclipse-theia#307: fixed ext generation by passing env variables to yo
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
  • Loading branch information
akosyakov committed Jul 20, 2017
1 parent 5ba5917 commit ad350b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function generate(name, cwd, prefix, target) {
const command = 'yo';
const args = ['theia:' + target, '--force'];
console.log(`${name}: ${command} ${args.join(' ')}`);
const p = cp.spawn(command, args, { cwd });
const p = cp.spawn(command, args, { cwd, env: process.env });
p.on('exit', code => {
if (code !== 0) {
process.exit(code)
Expand Down

0 comments on commit ad350b7

Please sign in to comment.