@batijs/cli 0.0.632 → 0.0.634
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +1 -0
- package/dist/{asset-env-Jk0sS-Q2.js → asset-env-DvKtWq7P.js} +6 -3
- package/dist/{asset-package.json-_46wnXn0.js → asset-package.json-87voLq6K.js} +1 -1
- package/dist/{asset-package.json-Buap0IPy.js → asset-package.json-B5iJDDzy.js} +1 -1
- package/dist/{asset-package.json-DKULIe-Z.js → asset-package.json-BCcXIWVE.js} +1 -1
- package/dist/{asset-package.json-DwayG2zN.js → asset-package.json-BQcL6ZKp.js} +1 -1
- package/dist/{asset-package.json-CDtoELCL.js → asset-package.json-BUSZr8_T.js} +7 -1
- package/dist/{asset-package.json-Ce3xlNdW.js → asset-package.json-BWSL6HTp.js} +1 -1
- package/dist/{asset-package.json-C-4KYYPE.js → asset-package.json-BjED634i.js} +1 -1
- package/dist/{asset-package.json-DSiZMeZh.js → asset-package.json-BkoVqsYe.js} +1 -1
- package/dist/{asset-package.json-BWBP2Nt4.js → asset-package.json-C3G5RoOK.js} +7 -1
- package/dist/{asset-package.json-CZGfrRCF.js → asset-package.json-CBsEdGlU.js} +6 -1
- package/dist/{asset-package.json-B-yhAahL.js → asset-package.json-CITuyODW.js} +1 -1
- package/dist/{asset-package.json-bQWZqYy0.js → asset-package.json-CLW5VUJP.js} +1 -1
- package/dist/{asset-package.json-ByyswJWS.js → asset-package.json-CXa26JLJ.js} +6 -1
- package/dist/{asset-package.json-BI-447Lf.js → asset-package.json-CZi_LoZe.js} +1 -1
- package/dist/{asset-package.json-s_vdtPYz.js → asset-package.json-Cp3NIISN.js} +7 -1
- package/dist/{asset-package.json-W0eT5YjJ.js → asset-package.json-CpJdnsXW.js} +3 -2
- package/dist/{asset-package.json-CrS3d_nT.js → asset-package.json-D1r58j8O.js} +1 -1
- package/dist/{asset-package.json-DoD27uYD.js → asset-package.json-D35e8CSx.js} +6 -4
- package/dist/asset-package.json-D5lEjBIT.js +41 -0
- package/dist/{asset-package.json-CtehZhRD.js → asset-package.json-DBz6f4sF.js} +2 -1
- package/dist/{asset-package.json-Y6cFx6TQ.js → asset-package.json-DE57wDL_.js} +1 -1
- package/dist/{asset-package.json-DO3v_Kz2.js → asset-package.json-DF5wt8rf.js} +1 -1
- package/dist/{asset-package.json-CNxKHE48.js → asset-package.json-DFkWjswB.js} +1 -1
- package/dist/{asset-package.json-EFYfsuao.js → asset-package.json-DGCqj3n1.js} +1 -1
- package/dist/{asset-package.json-D9HnGbn-.js → asset-package.json-DMDnsP2J.js} +7 -1
- package/dist/{asset-package.json-Cx9SXQz5.js → asset-package.json-DOKdYRCj.js} +1 -1
- package/dist/{asset-package.json-BKz7RIOA.js → asset-package.json-DcJFVtbo.js} +5 -2
- package/dist/{asset-package.json-DpL_QsSj.js → asset-package.json-DqGXTjLe.js} +1 -1
- package/dist/{asset-package.json-C8HDeufh.js → asset-package.json-DuJ-aQDX.js} +1 -1
- package/dist/{asset-package.json-DoCvkWCH.js → asset-package.json-Ulc6XDpU.js} +5 -1
- package/dist/{asset-package.json-CVDwQcJT.js → asset-package.json-WOGFbHRZ.js} +6 -1
- package/dist/{asset-package.json-Ddsv5ylk.js → asset-package.json-_607AoXW.js} +1 -1
- package/dist/{asset-package.json-DnspyDBy.js → asset-package.json-iI866f-q.js} +1 -1
- package/dist/{asset-package.json-f63TVKbb.js → asset-package.json-latJAGGO.js} +5 -1
- package/dist/{asset-package.json-DoZ5D9Nf.js → asset-package.json-wG-7DxN0.js} +1 -1
- package/dist/{asset-package2.json-JaXo-ozU.js → asset-package2.json-BdcK4vtT.js} +1 -1
- package/dist/{asset-package.json-1rjGQ0pD.js → asset-package2.json-Cqt3zXsB.js} +6 -1
- package/dist/{asset-package2.json-BdZNR8Cf.js → asset-package2.json-DND0OHll.js} +1 -1
- package/dist/{asset-package2.json-CGHsBMPO.js → asset-package2.json-DvwuT6bu.js} +1 -1
- package/dist/{asset-package2.json-CBe-SDVa.js → asset-package2.json-KbYXaPND.js} +5 -1
- package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/authjs/types/server/authjs-handler.d.mts +2 -3
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +0 -0
- package/dist/boilerplates/@batijs/aws/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/aws/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/aws/files/cdk/$stack-name-suffix.json.js +0 -0
- package/dist/boilerplates/@batijs/aws/types/vitest.config.d.mts +1 -3
- package/dist/boilerplates/@batijs/biome/files/$biome.json.js +0 -0
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +0 -0
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/cloudflare/files/$wrangler.jsonc.js +0 -0
- package/dist/boilerplates/@batijs/cloudflare/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/compiled/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +0 -0
- package/dist/boilerplates/@batijs/d1/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/d1-kysely/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1-kysely/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/docker-compose/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/docker-compose/files/$.dockerignore.js +0 -0
- package/dist/boilerplates/@batijs/docker-compose/files/$Dockerfile.js +17 -9
- package/dist/boilerplates/@batijs/docker-compose/files/$docker-compose.yml.js +1 -1
- package/dist/boilerplates/@batijs/{dokploy → docker-compose}/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/docker-compose/files/asset-env.mjs +6 -3
- package/dist/boilerplates/@batijs/{dokploy → docker-compose}/files/asset-package.json.mjs +5 -3
- package/dist/boilerplates/@batijs/docker-compose/files/docker-compose.yml +25 -2
- package/dist/boilerplates/@batijs/dokploy/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +5 -2
- package/dist/boilerplates/@batijs/drizzle/files/asset-package.json.mjs +3 -2
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/db.ts +11 -1
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/queries/todos.ts +6 -3
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/schema/todos.ts +11 -5
- package/dist/boilerplates/@batijs/drizzle/files/drizzle.config.ts +1 -1
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.mts +7 -5
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/queries/todos.d.mts +5 -50
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/schema/todos.d.mts +45 -5
- package/dist/boilerplates/@batijs/drizzle/types/drizzle.config.d.mts +1 -2
- package/dist/boilerplates/@batijs/edgeone/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/edgeone/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/edgeone/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/eslint/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/eslint/types/eslint.config.d.mts +1 -3
- package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/express/files/+server.ts +1 -1
- package/dist/boilerplates/@batijs/express/files/asset-package.json.mjs +7 -1
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/fastify/files/+server.ts +1 -1
- package/dist/boilerplates/@batijs/fastify/files/asset-package.json.mjs +7 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/+server.ts +1 -1
- package/dist/boilerplates/@batijs/h3/files/asset-package.json.mjs +7 -1
- package/dist/boilerplates/@batijs/h3/types/+server.d.mts +1 -2
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/asset-package.json.mjs +7 -1
- package/dist/boilerplates/@batijs/hono/files/server/hono.ts +1 -1
- package/dist/boilerplates/@batijs/hono/types/+server.d.mts +1 -2
- package/dist/boilerplates/@batijs/hono/types/entry_aws_lambda.d.mts +2 -2
- package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/handler.d.mts +1 -1
- package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.mts +1 -1
- package/dist/boilerplates/@batijs/hono/types/server/hono.d.mts +1 -2
- package/dist/boilerplates/@batijs/kysely/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/kysely/files/$package.json.js +6 -8
- package/dist/boilerplates/@batijs/kysely/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/kysely/files/asset-package.json.mjs +5 -2
- package/dist/boilerplates/@batijs/kysely/files/database/kysely/db.ts +13 -1
- package/dist/boilerplates/@batijs/kysely/files/database/kysely/migrate.ts +2 -2
- package/dist/boilerplates/@batijs/kysely/files/database/kysely/migrations/001_create_todos_table.ts +4 -5
- package/dist/boilerplates/@batijs/kysely/files/database/kysely/queries/todos.ts +3 -1
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/db.d.mts +2 -1
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/queries/todos.d.mts +3 -1
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/asset-package.json.mjs +2 -1
- package/dist/boilerplates/@batijs/mantine/types/components/Link.d.mts +1 -3
- package/dist/boilerplates/@batijs/mantine/types/pages/+Layout.d.mts +1 -2
- package/dist/boilerplates/@batijs/netlify/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/netlify/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/netlify/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/oxlint/files/$.oxlintrc.json.js +0 -0
- package/dist/boilerplates/@batijs/oxlint/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/oxlint/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +0 -0
- package/dist/boilerplates/@batijs/postgres/bati.config.mjs +25 -0
- package/dist/boilerplates/@batijs/postgres/files/$TODO.md.js +25 -0
- package/dist/boilerplates/@batijs/postgres/files/$package.json.js +15 -0
- package/dist/boilerplates/@batijs/postgres/files/asset-package.json.mjs +39 -0
- package/dist/boilerplates/@batijs/postgres/files/database/postgres/db.ts +15 -0
- package/dist/boilerplates/@batijs/postgres/files/database/postgres/queries/todos.ts +9 -0
- package/dist/boilerplates/@batijs/postgres/files/database/postgres/schema/all.ts +1 -0
- package/dist/boilerplates/@batijs/postgres/files/database/postgres/schema/todos.ts +16 -0
- package/dist/boilerplates/@batijs/postgres/types/database/postgres/db.d.mts +6 -0
- package/dist/boilerplates/@batijs/postgres/types/database/postgres/queries/todos.d.mts +10 -0
- package/dist/boilerplates/@batijs/postgres/types/database/postgres/schema/all.d.mts +1 -0
- package/dist/boilerplates/@batijs/postgres/types/database/postgres/schema/todos.d.mts +1 -0
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/prisma/bati.config.mjs +6 -12
- package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +4 -3
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/react/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/react/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +0 -0
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/react/files/asset-package.json.mjs +5 -1
- package/dist/boilerplates/@batijs/react/types/components/Link.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/+Head.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/+Layout.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/_error/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/index/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/index/Counter.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/todo/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/todo/TodoList.d.mts +1 -3
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react-sentry/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/react-sentry/types/pages/sentry/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/sentry/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +0 -0
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +0 -0
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/shadcn-ui/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/shared/files/$.env.js +0 -0
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/shared/files/$package.json.js +0 -0
- package/dist/boilerplates/@batijs/shared/types/vite.config.d.mts +1 -3
- package/dist/boilerplates/@batijs/shared-db/bati.config.mjs +26 -12
- package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +25 -15
- package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.mts +9 -5
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/asset-package.json.mjs +6 -1
- package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +13 -6
- package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.mts +15 -5
- package/dist/boilerplates/@batijs/shared-todo/files/global.d.ts +9 -5
- package/dist/boilerplates/@batijs/shared-todo/files/pages/todo/+data.ts +7 -2
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +0 -0
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/solid/files/asset-package.json.mjs +5 -1
- package/dist/boilerplates/@batijs/solid/types/components/Link.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/+Head.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/_error/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/index/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/index/Counter.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/todo/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/todo/TodoList.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid-sentry/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/solid-sentry/types/pages/sentry/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/sqlite/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/queries/todos.d.mts +1 -2
- package/dist/boilerplates/@batijs/storybook/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/storybook/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/tailwindcss/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/telefunc/files/asset-package.json.mjs +6 -1
- package/dist/boilerplates/@batijs/telefunc/files/global.d.ts +9 -6
- package/dist/boilerplates/@batijs/telefunc/files/pages/todo/TodoList.telefunc.ts +6 -2
- package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +9 -4
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/asset-package.json.mjs +6 -1
- package/dist/boilerplates/@batijs/trpc/files/trpc/server.ts +13 -6
- package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.mts +1 -3
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.mts +16 -16
- package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.mts +31 -13
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/asset-package.json.mjs +6 -1
- package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +13 -6
- package/dist/boilerplates/@batijs/ts-rest/types/ts-rest/client.d.mts +4 -6
- package/dist/boilerplates/@batijs/ts-rest/types/ts-rest/contract.d.mts +3 -5
- package/dist/boilerplates/@batijs/universal-deploy/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/universal-deploy/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/vercel/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +0 -0
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/vue/files/asset-package.json.mjs +5 -1
- package/dist/boilerplates/@batijs/vue/types/node_modules/{.pnpm/vike-vue@0.9.11_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0_vike@0.4.259_@cloudflare+wor_b1aa379fdc40687889ee6b09fc0f5338 → .bun/vike-vue@0.9.11+39ad969b3c081d25}/node_modules/vike-vue/dist/types/VikeHooks.d.mts +2 -2
- package/dist/boilerplates/@batijs/vue/types/pages/+onCreateApp.d.mts +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/boilerplates.json +6 -0
- package/dist/index.js +55 -37
- package/package.json +14 -12
- package/LICENSE.md +0 -9
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/index.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/alb.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/amplify-resolver.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-authorizer.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/appsync-resolver.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/autoscaling.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cdk-custom-resource.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudformation-custom-resource.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudfront-request.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudfront-response.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudwatch-alarm.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudwatch-events.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudwatch-logs.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codebuild-cloudwatch-state.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codecommit.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-action.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-pipeline.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-stage.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/create-auth-challenge.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-email-sender.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-message.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-sms-sender.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/define-auth-challenge.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/inbound-federation.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-authentication.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-confirmation.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-authentication.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-signup.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v2.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v3.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/user-migration.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/verify-auth-challenge-response.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/connect-contact-flow.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/dynamodb-stream.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/eventbridge.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/guard-duty-event-notification.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/iot-authorizer.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/iot.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/kinesis-firehose-transformation.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/kinesis-stream.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/lambda-function-url.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/lex-v2.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/lex.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/msk.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/s3-batch.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/s3-event-notification.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/s3.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/secretsmanager.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/self-managed-kafka.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/ses.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/sns.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/sqs.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/transfer-family-authorizer.d.mts +0 -0
- /package/dist/boilerplates/@batijs/vue/types/node_modules/{.pnpm/vike-vue@0.9.11_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0_vike@0.4.259_@cloudflare+wor_b1aa379fdc40687889ee6b09fc0f5338 → .bun/vike-vue@0.9.11+39ad969b3c081d25}/node_modules/vike-vue/dist/types/public.d.mts +0 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/*# BATI include-if-imported #*/
|
|
2
2
|
|
|
3
3
|
import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
|
|
4
|
-
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
4
|
+
import type { dbD1, dbPostgres, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
5
5
|
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
6
|
-
import type { dbKysely, dbKyselyD1 } from "@batijs/kysely/database/kysely/db";
|
|
6
|
+
import type { dbKysely, dbKyselyD1, dbKyselyPostgres } from "@batijs/kysely/database/kysely/db";
|
|
7
7
|
import * as kyselyQueries from "@batijs/kysely/database/kysely/queries/todos";
|
|
8
|
+
import type { db as pgDb } from "@batijs/postgres/database/postgres/db";
|
|
9
|
+
import * as pgQueries from "@batijs/postgres/database/postgres/queries/todos";
|
|
8
10
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
9
11
|
import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
|
|
10
12
|
import { enhance, type UniversalHandler } from "@universal-middleware/core";
|
|
@@ -13,12 +15,15 @@ import { enhance, type UniversalHandler } from "@universal-middleware/core";
|
|
|
13
15
|
export const createTodoHandler: UniversalHandler<
|
|
14
16
|
Universal.Context &
|
|
15
17
|
BATI.If<{
|
|
16
|
-
'BATI.has("
|
|
18
|
+
'BATI.has("drizzle") && BATI.has("postgres")': { db: ReturnType<typeof dbPostgres> };
|
|
19
|
+
'BATI.has("kysely") && BATI.has("postgres")': { db: ReturnType<typeof dbKyselyPostgres> };
|
|
20
|
+
'BATI.has("postgres") && !BATI.hasOrm': { db: ReturnType<typeof pgDb> };
|
|
21
|
+
'BATI.has("sqlite") && !BATI.hasD1 && !BATI.hasOrm': { db: ReturnType<typeof sqliteDb> };
|
|
17
22
|
'BATI.has("drizzle") && !BATI.hasD1': { db: ReturnType<typeof dbSqlite> };
|
|
18
23
|
'BATI.has("drizzle")': { db: ReturnType<typeof dbD1> };
|
|
19
24
|
'BATI.has("kysely") && !BATI.hasD1': { db: ReturnType<typeof dbKysely> };
|
|
20
25
|
'BATI.has("kysely")': { db: ReturnType<typeof dbKyselyD1> };
|
|
21
|
-
"BATI.hasD1": { db: D1Database };
|
|
26
|
+
"BATI.hasD1 && !BATI.hasOrm": { db: D1Database };
|
|
22
27
|
_: object;
|
|
23
28
|
}>
|
|
24
29
|
> = enhance(
|
|
@@ -28,12 +33,14 @@ export const createTodoHandler: UniversalHandler<
|
|
|
28
33
|
|
|
29
34
|
if (BATI.has("drizzle")) {
|
|
30
35
|
await drizzleQueries.insertTodo(_context.db, newTodo.text);
|
|
31
|
-
} else if (BATI.has("sqlite") && !BATI.hasD1) {
|
|
36
|
+
} else if (BATI.has("sqlite") && !BATI.hasD1 && !BATI.hasOrm) {
|
|
32
37
|
sqliteQueries.insertTodo(_context.db, newTodo.text);
|
|
33
38
|
} else if (BATI.has("kysely")) {
|
|
34
39
|
await kyselyQueries.insertTodo(_context.db, newTodo.text);
|
|
35
|
-
} else if (BATI.hasD1) {
|
|
40
|
+
} else if (BATI.hasD1 && !BATI.hasOrm) {
|
|
36
41
|
await d1Queries.insertTodo(_context.db, newTodo.text);
|
|
42
|
+
} else if (BATI.has("postgres") && !BATI.hasOrm) {
|
|
43
|
+
await pgQueries.insertTodo(_context.db, newTodo.text);
|
|
37
44
|
} else {
|
|
38
45
|
// This is where you'd persist the data
|
|
39
46
|
console.log("Received new todo", newTodo);
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
|
-
import { dbKysely, dbKyselyD1 } from "@batijs/kysely/database/kysely/db";
|
|
3
|
-
import { db } from "@batijs/
|
|
1
|
+
import { dbD1, dbPostgres, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
|
+
import { dbKysely, dbKyselyD1, dbKyselyPostgres } from "@batijs/kysely/database/kysely/db";
|
|
3
|
+
import { db } from "@batijs/postgres/database/postgres/db";
|
|
4
|
+
import { db as db$1 } from "@batijs/sqlite/database/sqlite/db";
|
|
4
5
|
import { UniversalHandler } from "@universal-middleware/core";
|
|
5
6
|
|
|
6
7
|
//#region files/server/create-todo-handler.d.ts
|
|
7
8
|
declare const createTodoHandler: UniversalHandler<Universal.Context & BATI.If<{
|
|
8
|
-
'BATI.has("
|
|
9
|
+
'BATI.has("drizzle") && BATI.has("postgres")': {
|
|
10
|
+
db: ReturnType<typeof dbPostgres>;
|
|
11
|
+
};
|
|
12
|
+
'BATI.has("kysely") && BATI.has("postgres")': {
|
|
13
|
+
db: ReturnType<typeof dbKyselyPostgres>;
|
|
14
|
+
};
|
|
15
|
+
'BATI.has("postgres") && !BATI.hasOrm': {
|
|
9
16
|
db: ReturnType<typeof db>;
|
|
10
17
|
};
|
|
18
|
+
'BATI.has("sqlite") && !BATI.hasD1 && !BATI.hasOrm': {
|
|
19
|
+
db: ReturnType<typeof db$1>;
|
|
20
|
+
};
|
|
11
21
|
'BATI.has("drizzle") && !BATI.hasD1': {
|
|
12
22
|
db: ReturnType<typeof dbSqlite>;
|
|
13
23
|
};
|
|
@@ -20,7 +30,7 @@ declare const createTodoHandler: UniversalHandler<Universal.Context & BATI.If<{
|
|
|
20
30
|
'BATI.has("kysely")': {
|
|
21
31
|
db: ReturnType<typeof dbKyselyD1>;
|
|
22
32
|
};
|
|
23
|
-
"BATI.hasD1": {
|
|
33
|
+
"BATI.hasD1 && !BATI.hasOrm": {
|
|
24
34
|
db: D1Database;
|
|
25
35
|
};
|
|
26
36
|
_: object;
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
|
-
import type { dbKysely, dbKyselyD1 } from "@batijs/kysely/database/kysely/db";
|
|
1
|
+
import type { dbD1, dbPostgres, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
|
+
import type { dbKysely, dbKyselyD1, dbKyselyPostgres } from "@batijs/kysely/database/kysely/db";
|
|
3
|
+
import type { db as pgDb } from "@batijs/postgres/database/postgres/db";
|
|
3
4
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
4
5
|
|
|
5
|
-
//# BATI.
|
|
6
|
+
//# BATI.hasDbDemo
|
|
6
7
|
declare global {
|
|
7
8
|
namespace Vike {
|
|
8
9
|
interface PageContextServer {
|
|
9
10
|
db: BATI.If<{
|
|
10
|
-
'BATI.has("
|
|
11
|
+
'BATI.has("drizzle") && BATI.has("postgres")': ReturnType<typeof dbPostgres>;
|
|
12
|
+
'BATI.has("kysely") && BATI.has("postgres")': ReturnType<typeof dbKyselyPostgres>;
|
|
13
|
+
'BATI.has("postgres") && !BATI.hasOrm': ReturnType<typeof pgDb>;
|
|
14
|
+
'BATI.has("sqlite") && !BATI.hasD1 && !BATI.hasOrm': ReturnType<typeof sqliteDb>;
|
|
11
15
|
'BATI.has("drizzle") && !BATI.hasD1': ReturnType<typeof dbSqlite>;
|
|
12
16
|
'BATI.has("drizzle")': ReturnType<typeof dbD1>;
|
|
13
17
|
'BATI.has("kysely") && !BATI.hasD1': ReturnType<typeof dbKysely>;
|
|
14
18
|
'BATI.has("kysely")': ReturnType<typeof dbKyselyD1>;
|
|
15
|
-
"BATI.hasD1": D1Database;
|
|
19
|
+
"BATI.hasD1 && !BATI.hasOrm": D1Database;
|
|
16
20
|
}>;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
|
|
4
4
|
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
5
5
|
import * as kyselyQueries from "@batijs/kysely/database/kysely/queries/todos";
|
|
6
|
+
import * as pgQueries from "@batijs/postgres/database/postgres/queries/todos";
|
|
6
7
|
import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
|
|
7
8
|
import type { PageContextServer } from "vike/types";
|
|
8
9
|
|
|
@@ -13,7 +14,7 @@ export async function data(_pageContext: PageContextServer) {
|
|
|
13
14
|
const todoItemsInitial = await drizzleQueries.getAllTodos(_pageContext.db);
|
|
14
15
|
|
|
15
16
|
return { todoItemsInitial };
|
|
16
|
-
} else if (BATI.has("sqlite") && !BATI.hasD1) {
|
|
17
|
+
} else if (BATI.has("sqlite") && !BATI.hasD1 && !BATI.hasOrm) {
|
|
17
18
|
const todoItemsInitial = sqliteQueries.getAllTodos(_pageContext.db);
|
|
18
19
|
|
|
19
20
|
return { todoItemsInitial };
|
|
@@ -21,9 +22,13 @@ export async function data(_pageContext: PageContextServer) {
|
|
|
21
22
|
const todoItemsInitial = await kyselyQueries.getAllTodos(_pageContext.db);
|
|
22
23
|
|
|
23
24
|
return { todoItemsInitial };
|
|
24
|
-
} else if (BATI.hasD1) {
|
|
25
|
+
} else if (BATI.hasD1 && !BATI.hasOrm) {
|
|
25
26
|
const todoItemsInitial = await d1Queries.getAllTodos(_pageContext.db);
|
|
26
27
|
|
|
28
|
+
return { todoItemsInitial };
|
|
29
|
+
} else if (BATI.has("postgres") && !BATI.hasOrm) {
|
|
30
|
+
const todoItemsInitial = await pgQueries.getAllTodos(_pageContext.db);
|
|
31
|
+
|
|
27
32
|
return { todoItemsInitial };
|
|
28
33
|
} else {
|
|
29
34
|
// NOTE: This +data hook is only for demonstration — it doesn't actually retrieve data from a database.
|
|
File without changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/solid/dist/files/$package.json.mjs
|
|
5
5
|
async function getPackageJson(props) {
|
|
6
|
-
return (await loadPackageJson(props, await import("../../../../asset-package.json-
|
|
6
|
+
return (await loadPackageJson(props, await import("../../../../asset-package.json-latJAGGO.js").then((x) => x.default))).addDevDependencies(["vite", "vite-plugin-solid"]).addDependencies([
|
|
7
7
|
"solid-js",
|
|
8
8
|
"vike-solid",
|
|
9
9
|
"vike"
|
|
File without changes
|
|
File without changes
|
|
@@ -14,7 +14,11 @@ var package_default = {
|
|
|
14
14
|
license: "MIT",
|
|
15
15
|
devDependencies: {
|
|
16
16
|
"@batijs/compile": "workspace:*",
|
|
17
|
-
"@batijs/core": "workspace
|
|
17
|
+
"@batijs/core": "workspace:*",
|
|
18
|
+
"@batijs/shared-todo": "workspace:*",
|
|
19
|
+
"@batijs/telefunc": "workspace:*",
|
|
20
|
+
"@batijs/trpc": "workspace:*",
|
|
21
|
+
"@batijs/ts-rest": "workspace:*",
|
|
18
22
|
"@types/node": "^20.19.37",
|
|
19
23
|
"solid-js": "^1.9.13",
|
|
20
24
|
"tailwindcss": "^4.3.0",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/solid-sentry/dist/files/$package.json.mjs
|
|
5
5
|
async function getPackageJson(props) {
|
|
6
|
-
return (await loadPackageJson(props, await import("../../../../asset-package.json-
|
|
6
|
+
return (await loadPackageJson(props, await import("../../../../asset-package.json-DFkWjswB.js").then((x) => x.default))).addDependencies(["@sentry/solid"]);
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
export { getPackageJson as default };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import * as _$solid_js0 from "solid-js";
|
|
2
|
-
|
|
3
1
|
//#region files/pages/sentry/+Page.d.ts
|
|
4
|
-
declare function SolidSentryErrorPage():
|
|
2
|
+
declare function SolidSentryErrorPage(): import("solid-js").JSX.Element;
|
|
5
3
|
//#endregion
|
|
6
4
|
export { SolidSentryErrorPage as default };
|
|
@@ -9,7 +9,7 @@ function t(t) {
|
|
|
9
9
|
//#region bati.config.ts
|
|
10
10
|
var bati_config_default = t({
|
|
11
11
|
if(meta) {
|
|
12
|
-
return meta.BATI.has("sqlite") && !meta.BATI.has("cloudflare");
|
|
12
|
+
return meta.BATI.has("sqlite") && !meta.BATI.hasOrm && !meta.BATI.has("cloudflare");
|
|
13
13
|
},
|
|
14
14
|
nextSteps(_meta, packageManager) {
|
|
15
15
|
return [{
|
|
File without changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/sqlite/dist/files/$package.json.mjs
|
|
5
5
|
async function getPackageJson(props) {
|
|
6
|
-
return (await loadPackageJson(props, await import("../../../../asset-package.json-
|
|
6
|
+
return (await loadPackageJson(props, await import("../../../../asset-package.json-DOKdYRCj.js").then((x) => x.default))).setScript("sqlite:migrate", {
|
|
7
7
|
value: `tsx ./database/sqlite/schema/all.ts`,
|
|
8
8
|
precedence: 1
|
|
9
9
|
}).addDevDependencies(["@types/better-sqlite3"]).addDependencies(["better-sqlite3"]).addDevDependencies(["tsx"], ["sqlite:migrate"]).addDependencies(["dotenv"]);
|
|
@@ -14,7 +14,7 @@ var package_default = {
|
|
|
14
14
|
license: "MIT",
|
|
15
15
|
devDependencies: {
|
|
16
16
|
"@batijs/compile": "workspace:*",
|
|
17
|
-
"@batijs/core": "workspace
|
|
17
|
+
"@batijs/core": "workspace:*",
|
|
18
18
|
"@types/better-sqlite3": "^7.6.13",
|
|
19
19
|
"@types/node": "^20.19.37",
|
|
20
20
|
"better-sqlite3": "^12.10.0",
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as _$better_sqlite30 from "better-sqlite3";
|
|
2
1
|
import { Database } from "better-sqlite3";
|
|
3
2
|
|
|
4
3
|
//#region files/database/sqlite/queries/todos.d.ts
|
|
5
|
-
declare function insertTodo(db: Database, text: string):
|
|
4
|
+
declare function insertTodo(db: Database, text: string): import("better-sqlite3").RunResult;
|
|
6
5
|
declare function getAllTodos(db: Database): {
|
|
7
6
|
id: number;
|
|
8
7
|
text: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/storybook/dist/files/$package.json.mjs
|
|
5
5
|
async function getPackageJson(props) {
|
|
6
|
-
return (await loadPackageJson(props, await import("../../../../asset-package.json-
|
|
6
|
+
return (await loadPackageJson(props, await import("../../../../asset-package.json-BCcXIWVE.js").then((x) => x.default))).addDevDependencies(["@types/node"]);
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
export { getPackageJson as default };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/tailwindcss/dist/files/$package.json.mjs
|
|
5
5
|
async function getPackageJson(props) {
|
|
6
|
-
return (await loadPackageJson(props, await import("../../../../asset-package.json-
|
|
6
|
+
return (await loadPackageJson(props, await import("../../../../asset-package.json-DGCqj3n1.js").then((x) => x.default))).addDevDependencies(["tailwindcss", "@tailwindcss/vite"]).addDevDependencies(["daisyui"], props.meta.BATI.has("daisyui"));
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
export { getPackageJson as default };
|
|
File without changes
|
|
@@ -14,7 +14,7 @@ var package_default = {
|
|
|
14
14
|
license: "MIT",
|
|
15
15
|
devDependencies: {
|
|
16
16
|
"@batijs/compile": "workspace:*",
|
|
17
|
-
"@batijs/core": "workspace
|
|
17
|
+
"@batijs/core": "workspace:*",
|
|
18
18
|
"@tailwindcss/vite": "^4.3.0",
|
|
19
19
|
"@types/node": "^20.19.37",
|
|
20
20
|
"autoprefixer": "^10.5.0",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/telefunc/dist/files/$package.json.mjs
|
|
5
5
|
async function getPackageJson(props) {
|
|
6
|
-
return (await loadPackageJson(props, await import("../../../../asset-package.json-
|
|
6
|
+
return (await loadPackageJson(props, await import("../../../../asset-package.json-CBsEdGlU.js").then((x) => x.default))).addDependencies(["telefunc", "@universal-middleware/core"]);
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
export { getPackageJson as default };
|
|
File without changes
|
|
@@ -14,7 +14,12 @@ var package_default = {
|
|
|
14
14
|
license: "MIT",
|
|
15
15
|
devDependencies: {
|
|
16
16
|
"@batijs/compile": "workspace:*",
|
|
17
|
-
"@batijs/core": "workspace
|
|
17
|
+
"@batijs/core": "workspace:*",
|
|
18
|
+
"@batijs/d1-sqlite": "workspace:*",
|
|
19
|
+
"@batijs/drizzle": "workspace:*",
|
|
20
|
+
"@batijs/kysely": "workspace:*",
|
|
21
|
+
"@batijs/postgres": "workspace:*",
|
|
22
|
+
"@batijs/sqlite": "workspace:*",
|
|
18
23
|
"@types/node": "^20.19.37",
|
|
19
24
|
"@universal-middleware/core": "^0.4.17",
|
|
20
25
|
"telefunc": "^0.2.20",
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
|
-
import type { dbKysely, dbKyselyD1 } from "@batijs/kysely/database/kysely/db";
|
|
1
|
+
import type { dbD1, dbPostgres, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
|
+
import type { dbKysely, dbKyselyD1, dbKyselyPostgres } from "@batijs/kysely/database/kysely/db";
|
|
3
|
+
import type { db as pgDb } from "@batijs/postgres/database/postgres/db";
|
|
3
4
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
4
5
|
|
|
5
|
-
//# BATI.
|
|
6
|
+
//# BATI.hasDbDemo
|
|
6
7
|
declare module "telefunc" {
|
|
7
8
|
namespace Telefunc {
|
|
8
9
|
interface Context {
|
|
9
10
|
db: BATI.If<{
|
|
10
|
-
'BATI.has("
|
|
11
|
+
'BATI.has("drizzle") && BATI.has("postgres")': ReturnType<typeof dbPostgres>;
|
|
12
|
+
'BATI.has("kysely") && BATI.has("postgres")': ReturnType<typeof dbKyselyPostgres>;
|
|
13
|
+
'BATI.has("postgres") && !BATI.hasOrm': ReturnType<typeof pgDb>;
|
|
14
|
+
'BATI.has("sqlite") && !BATI.hasD1 && !BATI.hasOrm': ReturnType<typeof sqliteDb>;
|
|
11
15
|
'BATI.has("drizzle") && !BATI.hasD1': ReturnType<typeof dbSqlite>;
|
|
12
16
|
'BATI.has("drizzle")': ReturnType<typeof dbD1>;
|
|
13
17
|
'BATI.has("kysely") && !BATI.hasD1': ReturnType<typeof dbKysely>;
|
|
14
18
|
'BATI.has("kysely")': ReturnType<typeof dbKyselyD1>;
|
|
15
|
-
"BATI.hasD1": D1Database;
|
|
16
|
-
_: object;
|
|
19
|
+
"BATI.hasD1 && !BATI.hasOrm": D1Database;
|
|
17
20
|
}>;
|
|
18
21
|
}
|
|
19
22
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
|
|
4
4
|
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
5
5
|
import * as kyselyQueries from "@batijs/kysely/database/kysely/queries/todos";
|
|
6
|
+
import * as pgQueries from "@batijs/postgres/database/postgres/queries/todos";
|
|
6
7
|
import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
|
|
7
8
|
import { getContext } from "telefunc";
|
|
8
9
|
|
|
@@ -10,15 +11,18 @@ export async function onNewTodo({ text }: { text: string }) {
|
|
|
10
11
|
if (BATI.has("drizzle")) {
|
|
11
12
|
const context = getContext();
|
|
12
13
|
await drizzleQueries.insertTodo(context.db, text);
|
|
13
|
-
} else if (BATI.has("sqlite") && !BATI.hasD1) {
|
|
14
|
+
} else if (BATI.has("sqlite") && !BATI.hasD1 && !BATI.hasOrm) {
|
|
14
15
|
const context = getContext();
|
|
15
16
|
sqliteQueries.insertTodo(context.db, text);
|
|
16
17
|
} else if (BATI.has("kysely")) {
|
|
17
18
|
const context = getContext();
|
|
18
19
|
await kyselyQueries.insertTodo(context.db, text);
|
|
19
|
-
} else if (BATI.hasD1) {
|
|
20
|
+
} else if (BATI.hasD1 && !BATI.hasOrm) {
|
|
20
21
|
const context = getContext();
|
|
21
22
|
await d1Queries.insertTodo(context.db, text);
|
|
23
|
+
} else if (BATI.has("postgres") && !BATI.hasOrm) {
|
|
24
|
+
const context = getContext();
|
|
25
|
+
await pgQueries.insertTodo(context.db, text);
|
|
22
26
|
} else {
|
|
23
27
|
// NOTE: This telefunction is only for demonstration — it doesn't actually save changes to a database.
|
|
24
28
|
// Go to https://vike.dev/new and select a database to scaffold an app with a persisted to-do list.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
|
-
import type { dbKysely, dbKyselyD1 } from "@batijs/kysely/database/kysely/db";
|
|
1
|
+
import type { dbD1, dbPostgres, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
|
+
import type { dbKysely, dbKyselyD1, dbKyselyPostgres } from "@batijs/kysely/database/kysely/db";
|
|
3
|
+
import type { db as pgDb } from "@batijs/postgres/database/postgres/db";
|
|
3
4
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
4
5
|
import { enhance, type UniversalHandler } from "@universal-middleware/core";
|
|
5
6
|
import { telefunc } from "telefunc";
|
|
@@ -11,12 +12,16 @@ export const telefuncHandler: UniversalHandler = enhance(
|
|
|
11
12
|
request,
|
|
12
13
|
context: {
|
|
13
14
|
...(context as BATI.If<{
|
|
14
|
-
'BATI.has("
|
|
15
|
+
'BATI.has("drizzle") && BATI.has("postgres")': { db: ReturnType<typeof dbPostgres> };
|
|
16
|
+
'BATI.has("kysely") && BATI.has("postgres")': { db: ReturnType<typeof dbKyselyPostgres> };
|
|
17
|
+
'BATI.has("postgres") && !BATI.hasOrm': { db: ReturnType<typeof pgDb> };
|
|
18
|
+
'BATI.has("sqlite") && !BATI.hasD1 && !BATI.hasOrm': { db: ReturnType<typeof sqliteDb> };
|
|
15
19
|
'BATI.has("drizzle") && !BATI.hasD1': { db: ReturnType<typeof dbSqlite> };
|
|
16
20
|
'BATI.has("drizzle")': { db: ReturnType<typeof dbD1> };
|
|
17
21
|
'BATI.has("kysely") && !BATI.hasD1': { db: ReturnType<typeof dbKysely> };
|
|
18
22
|
'BATI.has("kysely")': { db: ReturnType<typeof dbKyselyD1> };
|
|
19
|
-
"BATI.hasD1": { db: D1Database };
|
|
23
|
+
"BATI.hasD1 && !BATI.hasOrm": { db: D1Database };
|
|
24
|
+
_: object;
|
|
20
25
|
}>),
|
|
21
26
|
...(runtime as BATI.If<{
|
|
22
27
|
"BATI.hasD1": { runtime: "workerd"; env?: { DB: D1Database } };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/trpc/dist/files/$package.json.mjs
|
|
5
5
|
async function getPackageJson(props) {
|
|
6
|
-
return (await loadPackageJson(props, await import("../../../../asset-package.json-
|
|
6
|
+
return (await loadPackageJson(props, await import("../../../../asset-package.json-WOGFbHRZ.js").then((x) => x.default))).addDependencies(["@trpc/server", "@trpc/client"]);
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
export { getPackageJson as default };
|
|
@@ -14,7 +14,12 @@ var package_default = {
|
|
|
14
14
|
license: "MIT",
|
|
15
15
|
devDependencies: {
|
|
16
16
|
"@batijs/compile": "workspace:*",
|
|
17
|
-
"@batijs/core": "workspace
|
|
17
|
+
"@batijs/core": "workspace:*",
|
|
18
|
+
"@batijs/d1-sqlite": "workspace:*",
|
|
19
|
+
"@batijs/drizzle": "workspace:*",
|
|
20
|
+
"@batijs/kysely": "workspace:*",
|
|
21
|
+
"@batijs/postgres": "workspace:*",
|
|
22
|
+
"@batijs/sqlite": "workspace:*",
|
|
18
23
|
"@trpc/client": "^11.17.0",
|
|
19
24
|
"@trpc/server": "^11.17.0",
|
|
20
25
|
"@types/node": "^20.19.37",
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
|
|
2
|
-
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
|
+
import type { dbD1, dbPostgres, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
3
3
|
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
4
|
-
import type { dbKysely, dbKyselyD1 } from "@batijs/kysely/database/kysely/db";
|
|
4
|
+
import type { dbKysely, dbKyselyD1, dbKyselyPostgres } from "@batijs/kysely/database/kysely/db";
|
|
5
5
|
import * as kyselyQueries from "@batijs/kysely/database/kysely/queries/todos";
|
|
6
|
+
import type { db as pgDb } from "@batijs/postgres/database/postgres/db";
|
|
7
|
+
import * as pgQueries from "@batijs/postgres/database/postgres/queries/todos";
|
|
6
8
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
7
9
|
import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
|
|
8
10
|
import { initTRPC } from "@trpc/server";
|
|
@@ -14,12 +16,15 @@ import { initTRPC } from "@trpc/server";
|
|
|
14
16
|
const t = initTRPC
|
|
15
17
|
.context<
|
|
16
18
|
BATI.If<{
|
|
17
|
-
'BATI.has("
|
|
19
|
+
'BATI.has("drizzle") && BATI.has("postgres")': { db: ReturnType<typeof dbPostgres> };
|
|
20
|
+
'BATI.has("kysely") && BATI.has("postgres")': { db: ReturnType<typeof dbKyselyPostgres> };
|
|
21
|
+
'BATI.has("postgres") && !BATI.hasOrm': { db: ReturnType<typeof pgDb> };
|
|
22
|
+
'BATI.has("sqlite") && !BATI.hasD1 && !BATI.hasOrm': { db: ReturnType<typeof sqliteDb> };
|
|
18
23
|
'BATI.has("drizzle") && !BATI.hasD1': { db: ReturnType<typeof dbSqlite> };
|
|
19
24
|
'BATI.has("drizzle")': { db: ReturnType<typeof dbD1> };
|
|
20
25
|
'BATI.has("kysely") && !BATI.hasD1': { db: ReturnType<typeof dbKysely> };
|
|
21
26
|
'BATI.has("kysely")': { db: ReturnType<typeof dbKyselyD1> };
|
|
22
|
-
"BATI.hasD1": { db: D1Database };
|
|
27
|
+
"BATI.hasD1 && !BATI.hasOrm": { db: D1Database };
|
|
23
28
|
_: object;
|
|
24
29
|
}>
|
|
25
30
|
>()
|
|
@@ -46,12 +51,14 @@ export const appRouter = router({
|
|
|
46
51
|
.mutation(async (opts) => {
|
|
47
52
|
if (BATI.has("drizzle")) {
|
|
48
53
|
await drizzleQueries.insertTodo(opts.ctx.db, opts.input);
|
|
49
|
-
} else if (BATI.has("sqlite") && !BATI.hasD1) {
|
|
54
|
+
} else if (BATI.has("sqlite") && !BATI.hasD1 && !BATI.hasOrm) {
|
|
50
55
|
sqliteQueries.insertTodo(opts.ctx.db, opts.input);
|
|
51
56
|
} else if (BATI.has("kysely")) {
|
|
52
57
|
await kyselyQueries.insertTodo(opts.ctx.db, opts.input);
|
|
53
|
-
} else if (BATI.hasD1) {
|
|
58
|
+
} else if (BATI.hasD1 && !BATI.hasOrm) {
|
|
54
59
|
await d1Queries.insertTodo(opts.ctx.db, opts.input);
|
|
60
|
+
} else if (BATI.has("postgres") && !BATI.hasOrm) {
|
|
61
|
+
await pgQueries.insertTodo(opts.ctx.db, opts.input);
|
|
55
62
|
} else {
|
|
56
63
|
// This is where you'd persist the data
|
|
57
64
|
console.log("Received new todo", { text: opts.input });
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import * as _$_universal_middleware_core0 from "@universal-middleware/core";
|
|
2
|
-
|
|
3
1
|
//#region files/server/trpc-handler.d.ts
|
|
4
|
-
declare const trpcHandler: (endpoint: string) => ((request: Request<unknown, CfProperties<unknown>>, context: Universal.Context, runtime:
|
|
2
|
+
declare const trpcHandler: (endpoint: string) => ((request: Request<unknown, CfProperties<unknown>>, context: Universal.Context, runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>) & import("@universal-middleware/core").WithUniversalSymbols<{
|
|
5
3
|
name: string;
|
|
6
4
|
path: string;
|
|
7
5
|
method: ("GET" | "POST")[];
|