Skip to content

Commit 7a9a8a1

Browse files
committed
fix: ESM exports for solid-query
1 parent 0ed2a3c commit 7a9a8a1

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

.changeset/purple-turkeys-relax.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ts-rest/solid-query': patch
3+
---
4+
5+
Fix broken ESM module building for solid-query, was causing build errors with solid, especially solid-start

libs/ts-rest/solid-query/package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,16 @@
2323
"peerDependencies": {
2424
"zod": "3.x.x",
2525
"@tanstack/solid-query": "4.x.x"
26-
}
26+
},
27+
"exports": {
28+
".": {
29+
"import": "./index.js",
30+
"require": "./index.cjs"
31+
},
32+
"./package.json": "./package.json"
33+
},
34+
"main": "index.cjs",
35+
"module": "index.js",
36+
"types": "./src/index.d.ts",
37+
"type": "module"
2738
}

0 commit comments

Comments
 (0)