From 79510ade39a2ea47be599bf9a4d9d3853c478efa Mon Sep 17 00:00:00 2001 From: Sungyu Kang Date: Mon, 4 Nov 2024 21:16:24 +0900 Subject: [PATCH] fix: correct module and main entry points in package.json --- package.json | 2 -- packages/react-native/package.json | 4 ++-- packages/react/package.json | 4 ++-- packages/utils/package.json | 4 ++-- packages/web/package.json | 4 ++-- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 730d7ac..e3e8c30 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,6 @@ "name": "@webview-bridge/root", "private": true, "version": "1.0.0", - "description": "", - "main": "index.js", "scripts": { "packages:publish": "pnpm clear && pnpm --filter './packages/**' publish", "build": "nx run-many --target=build --projects=packages/*", diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 32aa99b..ca38c13 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -3,8 +3,8 @@ "version": "1.7.1", "type": "module", "description": "Fully Type-Safe Integration for React Native WebView and Web", - "main": "dist/index.js", - "module": "dist/index.cjs", + "main": "dist/index.cjs", + "module": "dist/index.js", "types": "dist/index.d.ts", "react-native": "src/index.ts", "exports": { diff --git a/packages/react/package.json b/packages/react/package.json index 81bd414..630dcef 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -15,8 +15,8 @@ "dist", "package.json" ], - "main": "dist/index.js", - "module": "dist/index.cjs", + "main": "dist/index.cjs", + "module": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { diff --git a/packages/utils/package.json b/packages/utils/package.json index ae85e07..d2641c9 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -8,8 +8,8 @@ "package.json" ], "react-native": "src/index.ts", - "main": "dist/index.js", - "module": "dist/index.cjs", + "main": "dist/index.cjs", + "module": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { diff --git a/packages/web/package.json b/packages/web/package.json index ee59e6c..199bd2e 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -15,8 +15,8 @@ "dist", "package.json" ], - "main": "dist/index.js", - "module": "dist/index.cjs", + "main": "dist/index.cjs", + "module": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": {