Skip to content

Commit

Permalink
fix: do not read credentials file in webpack override scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
Joy Chang committed May 7, 2019
1 parent ee8ee33 commit 9af4567
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/read-credentials-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import path = require('path');
const filename: string = 'ibm-credentials.env';

export function readCredentialsFile() {
if (!fs.existsSync) {
return {};
}

// first look for an env variable called IBM_CREDENTIALS_FILE
// it should be the path to the file

Expand Down Expand Up @@ -48,4 +52,4 @@ export function constructFilepath(filepath): string {
}

return filepath;
}
}

0 comments on commit 9af4567

Please sign in to comment.