Skip to content

Commit 78dbda8

Browse files
committed
fix(bootstrap): supply env for CLI <4.3.0
fixes #3724
1 parent 7fdf2a5 commit 78dbda8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ionic/bin/ionic

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var bootstrap = require(path.resolve(lib, 'bootstrap'));
4646
bootstrap.detectLocalCLI()
4747
.then(function(localPath) {
4848
cli = require(localPath);
49-
return cli.run(pargv);
49+
return cli.run(pargv, process.env);
5050
}, function(err) {
5151
cli = require(lib);
5252

@@ -56,7 +56,7 @@ bootstrap.detectLocalCLI()
5656

5757
process.env.IONIC_CLI_LOCAL_ERROR = err;
5858

59-
return cli.run(pargv);
59+
return cli.run(pargv, process.env);
6060
})
6161
.then(function() {
6262
evt.emit('ready');

0 commit comments

Comments
 (0)