We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27500ce commit 82db412Copy full SHA for 82db412
2 files changed
.changeset/fix-package-exports-1772531227.md
@@ -0,0 +1,5 @@
1
+---
2
+"react-loqate": patch
3
4
+
5
+Fix package.json module exports to correctly reference build outputs.
package.json
@@ -4,9 +4,22 @@
"type": "module",
"license": "MIT",
6
"author": "Bram Kaashoek",
7
- "main": "dist/index.js",
8
- "typings": "dist/index.d.ts",
9
- "module": "dist/index.mjs",
+ "main": "dist/index.cjs",
+ "module": "dist/index.js",
+ "types": "dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.js"
15
+ },
16
+ "require": {
17
+ "types": "./dist/index.d.cts",
18
+ "default": "./dist/index.cjs"
19
+ }
20
21
+ "./package.json": "./package.json"
22
23
"files": [
24
"dist"
25
],
0 commit comments