Skip to content

Commit

Permalink
fixes #4259 revert back to use commonJs modules for react native (#4265)
Browse files Browse the repository at this point in the history
* fix #4259 revert back to use commonJs modules for react native

* Add react-native override in interactions package as well
  • Loading branch information
Amplifiyer authored Oct 25, 2019
1 parent 63253ac commit c0fa439
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"lint": "tslint 'src/**/*.ts'"
},
"react-native": {
"./index": "./lib-esm/index.js",
"./lib-esm/trackers": "./lib-esm/trackers/reactnative.js"
"./index": "./lib/index.js",
"./lib/trackers": "./lib/trackers/reactnative.js"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "./lib-esm/index.js",
"typings": "./lib-esm/index.d.ts",
"react-native": {
"./index": "./lib-esm/index.js"
"./index": "./lib/index.js"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "./lib-esm/index.js",
"typings": "./lib-esm/index.d.ts",
"react-native": {
"./index": "./lib-esm/index.js"
"./index": "./lib/index.js"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "./lib-esm/index.js",
"typings": "./lib-esm/index.d.ts",
"react-native": {
"./index": "./lib-esm/index.js"
"./index": "./lib/index.js"
},
"scripts": {
"test": "jest -w 1 --passWithNoTests --coverage --maxWorkers 2",
Expand Down
3 changes: 3 additions & 0 deletions packages/interactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"main": "./index.js",
"module": "./lib-esm/index.js",
"typings": "./lib-esm/index.d.ts",
"react-native": {
"./index": "./lib/index.js"
},
"publishConfig": {
"access": "public"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/predictions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "./lib-esm/index.js",
"typings": "./lib-esm/index.d.ts",
"react-native": {
"./index": "./lib-esm/index.js"
"./index": "./lib/index.js"
},
"scripts": {
"test": "jest -w 1 --passWithNoTests --coverage --maxWorkers 2",
Expand Down
2 changes: 1 addition & 1 deletion packages/pubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "./lib-esm/index.js",
"typings": "./lib-esm/index.d.ts",
"react-native": {
"./index": "./lib-esm/index.js"
"./index": "./lib/index.js"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "./lib-esm/index.js",
"typings": "./lib-esm/index.d.ts",
"react-native": {
"./index": "./lib-esm/index.js"
"./index": "./lib/index.js"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/xr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "./lib-esm/index.js",
"typings": "./lib-esm/index.d.ts",
"react-native": {
"./index": "./lib-esm/index.js"
"./index": "./lib/index.js"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit c0fa439

Please sign in to comment.