Skip to content

Commit

Permalink
chore: create adapters directory (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Nov 11, 2024
1 parent 1d1f6f6 commit 9c031e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"import": "./dist/vite-plugin.js"
},
"./cloudflare-pages": {
"types": "./dist/cloudflare-pages.d.ts",
"import": "./dist/cloudflare-pages.js"
"types": "./dist/adapters/cloudflare-pages.d.ts",
"import": "./dist/adapters/cloudflare-pages.js"
}
},
"author": "Yusuke Wada <[email protected]> (https://github.com/yusukebe)",
Expand Down Expand Up @@ -63,4 +63,4 @@
"@remix-run/cloudflare": "^2.11.2",
"remix-hono": "^0.0.16"
}
}
}
4 changes: 2 additions & 2 deletions src/cloudflare-pages.ts → src/adapters/cloudflare-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { Hono } from 'hono'
import { handle } from 'hono/cloudflare-pages'
import { createMiddleware } from 'hono/factory'
import { staticAssets } from 'remix-hono/cloudflare'
import { createGetLoadContextArgs, defaultGetLoadContext } from './remix'
import type { GetLoadContext } from './remix'
import { createGetLoadContextArgs, defaultGetLoadContext } from '../remix'
import type { GetLoadContext } from '../remix'

interface RemixMiddlewareOptions {
build: ServerBuild
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['src/vite-plugin.ts', 'src/dev.ts', 'src/cloudflare-pages.ts', 'src/remix.ts'],
entry: ['src/vite-plugin.ts', 'src/dev.ts', 'src/adapters/cloudflare-pages.ts', 'src/remix.ts'],
external: ['../server', 'virtual:remix/server-build', 'hono', '@remix-run/cloudflare', 'vite'],
format: 'esm',
splitting: false,
Expand Down

0 comments on commit 9c031e3

Please sign in to comment.