Skip to content

Commit 43a5212

Browse files
committed
fix(react-router-hono): fix automatic preset exports
1 parent 1cbc542 commit 43a5212

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.changeset/rare-cooks-tease.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@pizzajsdev/react-router-hono': patch
3+
---
4+
5+
fix exports

packages/react-router-hono/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ pnpm add @pizzajsdev/react-router-hono hono @hono/node-server
1717

1818
```ts
1919
import type { Config } from '@react-router/dev/config'
20-
import { createAutomaticPreset } from '@pizzajsdev/react-router-hono/presets'
20+
import { createAutomaticPreset } from '@pizzajsdev/react-router-hono/presets/auto'
2121

2222
export default {
23+
// Automatically creates a React Router preset based on the environment. If it detects that it is running in Vercel,
24+
// it will use the Vercel preset, otherwise it will use the Node preset.
2325
presets: [createAutomaticPreset()],
2426
} satisfies Config
2527
```

packages/react-router-hono/package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
"sideEffects": false,
1515
"type": "module",
1616
"exports": {
17-
"./presets": {
18-
"import": {
19-
"types": "./dist/presets/index.d.ts",
20-
"default": "./dist/presets/index.js"
21-
}
22-
},
2317
"./*": {
2418
"import": {
2519
"types": "./dist/*.d.ts",

0 commit comments

Comments
 (0)