Skip to content

Commit

Permalink
feat: override
Browse files Browse the repository at this point in the history
  • Loading branch information
gronxb committed Oct 24, 2024
1 parent 1714974 commit cfa1801
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 20 deletions.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,11 @@
"typescript": "^5.6.2",
"typescript-transform-paths": "^3.4.6"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"pnpm": {
"overrides": {
"@webview-bridge/types": "workspace:*",
"@webview-bridge/utils": "workspace:*"
}
}
}
3 changes: 2 additions & 1 deletion packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"test:type": "tsc --noEmit"
},
"devDependencies": {
"@webview-bridge/utils": "workspace:^",
"@webview-bridge/types": "workspace:^",
"@types/react": "^18.2.25",
"@types/use-sync-external-store": "^0.0.6",
Expand All @@ -45,6 +44,8 @@
"react-native-webview": "*"
},
"dependencies": {
"@webview-bridge/utils": "1.6.2",
"@webview-bridge/types": "1.6.2",
"use-sync-external-store": "^1.2.0"
}
}
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"@types/react": "^18.2.69",
"@types/use-sync-external-store": "^0.0.6",
"@webview-bridge/web": "workspace:^",
"@webview-bridge/types": "workspace:^",
"react": "^18.2.0"
},
"dependencies": {
"@webview-bridge/types": "1.6.2",
"use-sync-external-store": "^1.2.2"
},
"peerDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"build": "tsup src/index.ts --format cjs,esm --dts --target es5",
"test:type": "tsc --noEmit"
},
"devDependencies": {
"@webview-bridge/utils": "workspace:^",
"@webview-bridge/types": "workspace:^"
"dependencies": {
"@webview-bridge/utils": "1.6.2",
"@webview-bridge/types": "1.6.2"
}
}
28 changes: 16 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions shared/types/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# webview-bridge

webview-bridge internal package

For more information, check out https://github.com/gronxb/webview-bridge
9 changes: 8 additions & 1 deletion shared/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@webview-bridge/types",
"private": true,
"type": "module",
"version": "1.6.2",
"files": [
Expand All @@ -17,6 +16,14 @@
"require": "./src/index.ts"
}
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/gronxb/webview-bridge.git"
},
"license": "MIT",
"scripts": {
"build": "tsup src/index.ts --dts",
"test:type": "tsc --noEmit"
Expand Down
5 changes: 5 additions & 0 deletions shared/utils/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# webview-bridge

webview-bridge internal package

For more information, check out https://github.com/gronxb/webview-bridge
9 changes: 8 additions & 1 deletion shared/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@webview-bridge/utils",
"private": true,
"type": "module",
"version": "1.6.2",
"files": [
Expand All @@ -14,6 +13,14 @@
"require": "./dist/index.cjs"
}
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/gronxb/webview-bridge.git"
},
"license": "MIT",
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts --target es5",
"test:type": "tsc --noEmit"
Expand Down

0 comments on commit cfa1801

Please sign in to comment.