From 257b67228c5ace1e0a1ff369b84c24f7efe3c421 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Sun, 29 Oct 2023 18:36:21 +0900 Subject: [PATCH] fix: add module field of package.json (#275) fix #271 # Overview I added module field of package.json to define esm's entry ## PR Checklist - [x] I did below actions if need 1. I read the [Contributing Guide](https://github.com/suspensive/react/blob/main/CONTRIBUTING.md) 2. I added documents and tests. --- .changeset/smooth-poets-glow.md | 7 +++++++ packages/react-await/package.json | 1 + packages/react-query/package.json | 1 + packages/react/package.json | 1 + 4 files changed, 10 insertions(+) create mode 100644 .changeset/smooth-poets-glow.md diff --git a/.changeset/smooth-poets-glow.md b/.changeset/smooth-poets-glow.md new file mode 100644 index 000000000..8ae6f995d --- /dev/null +++ b/.changeset/smooth-poets-glow.md @@ -0,0 +1,7 @@ +--- +"@suspensive/react-await": patch +"@suspensive/react-query": patch +"@suspensive/react": patch +--- + +fix: add module field of package.json diff --git a/packages/react-await/package.json b/packages/react-await/package.json index becacdc2f..0eb6a0127 100644 --- a/packages/react-await/package.json +++ b/packages/react-await/package.json @@ -38,6 +38,7 @@ "./package.json": "./package.json" }, "main": "dist/index.cjs", + "module": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist", diff --git a/packages/react-query/package.json b/packages/react-query/package.json index a5c27e644..63f049bbf 100644 --- a/packages/react-query/package.json +++ b/packages/react-query/package.json @@ -39,6 +39,7 @@ "./package.json": "./package.json" }, "main": "dist/index.cjs", + "module": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist", diff --git a/packages/react/package.json b/packages/react/package.json index 43bc6dcc6..62529949b 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -38,6 +38,7 @@ "./package.json": "./package.json" }, "main": "dist/index.cjs", + "module": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist",