Skip to content

Commit 88a9d16

Browse files
Christian Comptondpopp07
Christian Compton
authored andcommitted
fix: provide bundlers alternate file for browser support (#58)
1 parent cbea596 commit 88a9d16

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Dummy for browser
2+
export function readCredentialsFile() {
3+
return {};
4+
};

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
"semver": "^6.2.0",
7171
"vcap_services": "~0.3.4"
7272
},
73+
"browser": {
74+
"./auth/utils/read-credentials-file": "./auth/utils/read-credentials-file.browser"
75+
},
7376
"engines": {
7477
"node": ">=10"
7578
},

0 commit comments

Comments
 (0)