Skip to content

Commit

Permalink
fix: provide bundlers alternate file for browser support (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Compton authored and dpopp07 committed Oct 3, 2019
1 parent cbea596 commit 88a9d16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions auth/utils/read-credentials-file.browser.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Dummy for browser
export function readCredentialsFile() {
return {};
};
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
"semver": "^6.2.0",
"vcap_services": "~0.3.4"
},
"browser": {
"./auth/utils/read-credentials-file": "./auth/utils/read-credentials-file.browser"
},
"engines": {
"node": ">=10"
},
Expand Down

0 comments on commit 88a9d16

Please sign in to comment.