Skip to content

Commit

Permalink
Add react-native directives to each package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
amika-sq authored and frankhinek committed Jun 27, 2023
1 parent 69ab8a5 commit 1ecb992
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 9 deletions.
7 changes: 6 additions & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
"./dist/cjs/main.cjs": "./dist/browser.js",
"types": "./dist/types/main.d.ts"
},
"react-native": {
"./dist/esm/main.mjs": "./dist/esm/main.mjs",
"./dist/cjs/main.cjs": "./dist/esm/main.mjs",
"types": "./dist/types/main.d.ts"
},
"keywords": [
"decentralized",
"decentralized-applications",
Expand Down Expand Up @@ -104,4 +109,4 @@
"overrides": {
"socket.io-parser@>4.0.4 <4.2.3": "4.2.3"
}
}
}
7 changes: 6 additions & 1 deletion packages/credentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
"./dist/cjs/main.cjs": "./dist/browser.js",
"types": "./dist/types/main.d.ts"
},
"react-native": {
"./dist/esm/main.mjs": "./dist/esm/main.mjs",
"./dist/cjs/main.cjs": "./dist/esm/main.mjs",
"types": "./dist/types/main.d.ts"
},
"keywords": [
"decentralized",
"decentralized-applications",
Expand Down Expand Up @@ -105,4 +110,4 @@
"overrides": {
"socket.io-parser@>4.0.4 <4.2.3": "4.2.3"
}
}
}
7 changes: 6 additions & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
"./dist/cjs/main.cjs": "./dist/browser.js",
"types": "./dist/types/main.d.ts"
},
"react-native": {
"./dist/esm/main.mjs": "./dist/esm/main.mjs",
"./dist/cjs/main.cjs": "./dist/esm/main.mjs",
"types": "./dist/types/main.d.ts"
},
"keywords": [
"cryptography",
"ed25519",
Expand Down Expand Up @@ -111,4 +116,4 @@
"overrides": {
"socket.io-parser@>4.0.4 <4.2.3": "4.2.3"
}
}
}
7 changes: 6 additions & 1 deletion packages/dids/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
"./dist/cjs/main.cjs": "./dist/browser.js",
"types": "./dist/types/main.d.ts"
},
"react-native": {
"./dist/esm/main.mjs": "./dist/esm/main.mjs",
"./dist/cjs/main.cjs": "./dist/esm/main.mjs",
"types": "./dist/types/main.d.ts"
},
"keywords": [
"decentralized",
"decentralized-identity",
Expand Down Expand Up @@ -117,4 +122,4 @@
"overrides": {
"socket.io-parser@>4.0.4 <4.2.3": "4.2.3"
}
}
}
6 changes: 5 additions & 1 deletion packages/old/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
"./dist/esm/index.js": "./dist/browser.mjs",
"./dist/cjs/index.js": "./dist/browser.js"
},
"react-native": {
"./dist/esm/main.mjs": "./dist/esm/main.mjs",
"./dist/cjs/main.cjs": "./dist/esm/main.mjs"
},
"files": [
"dist",
"src"
Expand Down Expand Up @@ -75,4 +79,4 @@
"readable-web-to-node-stream": "3.0.2",
"tweetnacl": "1.0.3"
}
}
}
7 changes: 6 additions & 1 deletion packages/web5-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
"./dist/cjs/main.cjs": "./dist/browser.js",
"types": "./dist/types/main.d.ts"
},
"react-native": {
"./dist/esm/main.mjs": "./dist/esm/main.mjs",
"./dist/cjs/main.cjs": "./dist/esm/main.mjs",
"types": "./dist/types/main.d.ts"
},
"keywords": [
"decentralized",
"decentralized-applications",
Expand Down Expand Up @@ -111,4 +116,4 @@
"overrides": {
"socket.io-parser@>4.0.4 <4.2.3": "4.2.3"
}
}
}
7 changes: 6 additions & 1 deletion packages/web5-proxy-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
"./dist/cjs/main.cjs": "./dist/browser.js",
"types": "./dist/types/main.d.ts"
},
"react-native": {
"./dist/esm/main.mjs": "./dist/esm/main.mjs",
"./dist/cjs/main.cjs": "./dist/esm/main.mjs",
"types": "./dist/types/main.d.ts"
},
"keywords": [
"decentralized",
"decentralized-applications",
Expand Down Expand Up @@ -111,4 +116,4 @@
"overrides": {
"socket.io-parser@>4.0.4 <4.2.3": "4.2.3"
}
}
}
7 changes: 6 additions & 1 deletion packages/web5-user-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
"./dist/cjs/main.cjs": "./dist/browser.js",
"types": "./dist/types/main.d.ts"
},
"react-native": {
"./dist/esm/main.mjs": "./dist/esm/main.mjs",
"./dist/cjs/main.cjs": "./dist/esm/main.mjs",
"types": "./dist/types/main.d.ts"
},
"keywords": [
"decentralized",
"decentralized-applications",
Expand Down Expand Up @@ -121,4 +126,4 @@
"overrides": {
"socket.io-parser@>4.0.4 <4.2.3": "4.2.3"
}
}
}
7 changes: 6 additions & 1 deletion packages/web5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
"./dist/cjs/main.cjs": "./dist/browser.js",
"types": "./dist/types/main.d.ts"
},
"react-native": {
"./dist/esm/main.mjs": "./dist/esm/main.mjs",
"./dist/cjs/main.cjs": "./dist/esm/main.mjs",
"types": "./dist/types/main.d.ts"
},
"keywords": [
"decentralized",
"decentralized-applications",
Expand Down Expand Up @@ -125,4 +130,4 @@
"overrides": {
"socket.io-parser@>4.0.4 <4.2.3": "4.2.3"
}
}
}

0 comments on commit 1ecb992

Please sign in to comment.