Skip to content

Commit

Permalink
fix(credential-providers): use different entrypoint for web runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Nov 11, 2021
1 parent c7a32a5 commit 029a684
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
18 changes: 2 additions & 16 deletions packages/credential-providers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,8 @@
"description": "A collection of credential providers, without requiring service clients like STS, Cognito",
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
"browser": {
"./fromContainerMetadata": false,
"./fromEnv": false,
"./fromInstanceMetadata": false,
"./fromProcess": false,
"./fromSSO": false,
"./fromIni": false
},
"react-native": {
"./fromContainerMetadata": false,
"./fromEnv": false,
"./fromInstanceMetadata": false,
"./fromProcess": false,
"./fromSSO": false,
"./fromIni": false
},
"browser": "./dist-es/index.web.js",
"react-native": "./dist-es/index.web.js",
"sideEffects": false,
"scripts": {
"build": "yarn build:cjs && yarn build:es && yarn build:types",
Expand Down
4 changes: 4 additions & 0 deletions packages/credential-providers/src/index.web.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from "./fromCognitoIdentity";
export * from "./fromCognitoIdentityPool";
export * from "./fromTemporaryCredentials";
export * from "./fromWebToken";

0 comments on commit 029a684

Please sign in to comment.