From cfa18018b50b55d2ee0b119aed7243197a6c7ac4 Mon Sep 17 00:00:00 2001 From: Sungyu Kang Date: Fri, 25 Oct 2024 02:48:20 +0900 Subject: [PATCH] feat: override --- package.json | 8 +++++++- packages/react-native/package.json | 3 ++- packages/react/package.json | 2 +- packages/web/package.json | 6 +++--- pnpm-lock.yaml | 28 ++++++++++++++++------------ shared/types/README.md | 5 +++++ shared/types/package.json | 9 ++++++++- shared/utils/README.md | 5 +++++ shared/utils/package.json | 9 ++++++++- 9 files changed, 55 insertions(+), 20 deletions(-) create mode 100644 shared/types/README.md create mode 100644 shared/utils/README.md diff --git a/package.json b/package.json index 9bada3f..89a9b2b 100644 --- a/package.json +++ b/package.json @@ -29,5 +29,11 @@ "typescript": "^5.6.2", "typescript-transform-paths": "^3.4.6" }, - "packageManager": "pnpm@9.4.0" + "packageManager": "pnpm@9.4.0", + "pnpm": { + "overrides": { + "@webview-bridge/types": "workspace:*", + "@webview-bridge/utils": "workspace:*" + } + } } diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 59926df..ca92f96 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -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", @@ -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" } } diff --git a/packages/react/package.json b/packages/react/package.json index 9b76f59..41abf6e 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -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": { diff --git a/packages/web/package.json b/packages/web/package.json index bcf9bc9..ffa657f 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -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" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4ef2bc5..0f7b031 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,10 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + '@webview-bridge/types': workspace:* + '@webview-bridge/utils': workspace:* + importers: .: @@ -721,6 +725,9 @@ importers: packages/react: dependencies: + '@webview-bridge/types': + specifier: workspace:* + version: link:../../shared/types use-sync-external-store: specifier: ^1.2.2 version: 1.2.2(react@18.2.0) @@ -731,9 +738,6 @@ importers: '@types/use-sync-external-store': specifier: ^0.0.6 version: 0.0.6 - '@webview-bridge/types': - specifier: workspace:^ - version: link:../../shared/types '@webview-bridge/web': specifier: workspace:^ version: link:../web @@ -743,6 +747,12 @@ importers: packages/react-native: dependencies: + '@webview-bridge/types': + specifier: workspace:* + version: link:../../shared/types + '@webview-bridge/utils': + specifier: workspace:* + version: link:../../shared/utils use-sync-external-store: specifier: ^1.2.0 version: 1.2.0(react@18.2.0) @@ -753,12 +763,6 @@ importers: '@types/use-sync-external-store': specifier: ^0.0.6 version: 0.0.6 - '@webview-bridge/types': - specifier: workspace:^ - version: link:../../shared/types - '@webview-bridge/utils': - specifier: workspace:^ - version: link:../../shared/utils react: specifier: ^18.2.0 version: 18.2.0 @@ -770,12 +774,12 @@ importers: version: 5.6.3 packages/web: - devDependencies: + dependencies: '@webview-bridge/types': - specifier: workspace:^ + specifier: workspace:* version: link:../../shared/types '@webview-bridge/utils': - specifier: workspace:^ + specifier: workspace:* version: link:../../shared/utils shared/types: {} diff --git a/shared/types/README.md b/shared/types/README.md new file mode 100644 index 0000000..6051d20 --- /dev/null +++ b/shared/types/README.md @@ -0,0 +1,5 @@ +# webview-bridge + +webview-bridge internal package + +For more information, check out https://github.com/gronxb/webview-bridge diff --git a/shared/types/package.json b/shared/types/package.json index 5e6285f..0f63ef1 100644 --- a/shared/types/package.json +++ b/shared/types/package.json @@ -1,6 +1,5 @@ { "name": "@webview-bridge/types", - "private": true, "type": "module", "version": "1.6.2", "files": [ @@ -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" diff --git a/shared/utils/README.md b/shared/utils/README.md new file mode 100644 index 0000000..6051d20 --- /dev/null +++ b/shared/utils/README.md @@ -0,0 +1,5 @@ +# webview-bridge + +webview-bridge internal package + +For more information, check out https://github.com/gronxb/webview-bridge diff --git a/shared/utils/package.json b/shared/utils/package.json index 13d42cd..a378db8 100644 --- a/shared/utils/package.json +++ b/shared/utils/package.json @@ -1,6 +1,5 @@ { "name": "@webview-bridge/utils", - "private": true, "type": "module", "version": "1.6.2", "files": [ @@ -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"