@batijs/cli 0.0.599 → 0.0.616
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/dist/asset-package.json-4Kd3cYZK.js +30 -0
- package/dist/asset-package.json-9Dpl9Mb1.js +28 -0
- package/dist/asset-package.json-B1LJoxQy.js +27 -0
- package/dist/asset-package.json-B70a343K.js +31 -0
- package/dist/asset-package.json-B8sUm95k.js +36 -0
- package/dist/asset-package.json-BBScdtt2.js +38 -0
- package/dist/asset-package.json-BaG5IQgr.js +28 -0
- package/dist/asset-package.json-BhjW9kPa.js +32 -0
- package/dist/asset-package.json-BmIq6tgj.js +37 -0
- package/dist/asset-package.json-Bq-WERub.js +30 -0
- package/dist/asset-package.json-C0zqbjd2.js +38 -0
- package/dist/asset-package.json-C1RC0qQ_.js +50 -0
- package/dist/asset-package.json-C8_5kSRG.js +38 -0
- package/dist/asset-package.json-CAwLskjc.js +26 -0
- package/dist/asset-package.json-CNh4NGnA.js +29 -0
- package/dist/asset-package.json-CNquilyP.js +30 -0
- package/dist/asset-package.json-CUwXUL3w.js +40 -0
- package/dist/asset-package.json-CW1_5EST.js +28 -0
- package/dist/asset-package.json-CWG7pXnN.js +32 -0
- package/dist/asset-package.json-Cds0ERMz.js +32 -0
- package/dist/asset-package.json-Cjahpri-.js +28 -0
- package/dist/asset-package.json-CkNZXATp.js +28 -0
- package/dist/asset-package.json-Csym4FSw.js +42 -0
- package/dist/asset-package.json-CtFWaNn9.js +40 -0
- package/dist/asset-package.json-D4UgLIkc.js +77 -0
- package/dist/asset-package.json-DENbzmRi.js +29 -0
- package/dist/asset-package.json-DbsquBor.js +40 -0
- package/dist/asset-package.json-HvG5OW9U.js +43 -0
- package/dist/asset-package.json-UDlA8Zgo.js +27 -0
- package/dist/asset-package.json-X6ru3OSa.js +37 -0
- package/dist/asset-package.json-f2FJXXA4.js +38 -0
- package/dist/asset-package.json-f_NA5NSa.js +47 -0
- package/dist/asset-package.json-fwFpoZXr.js +46 -0
- package/dist/asset-package.json-kq-Ep7__.js +26 -0
- package/dist/asset-package.json-rWJjT-Xv.js +45 -0
- package/dist/asset-package.json-xpWG3Ryo.js +69 -0
- package/dist/asset-package2.json-Dj3iM0ux.js +53 -0
- package/dist/boilerplates/@batijs/auth0/bati.config.mjs +22 -0
- package/dist/boilerplates/@batijs/auth0/files/$.env.js +13 -21
- package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +8 -17
- package/dist/boilerplates/@batijs/auth0/files/$wrangler.jsonc.js +14 -22
- package/dist/boilerplates/@batijs/authjs/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +5 -81
- package/dist/boilerplates/@batijs/authjs/files/asset-package.json.mjs +28 -0
- package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +1 -3
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/adapters.d.mts +11 -0
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/index.d.mts +1 -0
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/jwt.d.mts +1 -0
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/lib/utils/actions.d.mts +1 -0
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/lib/utils/cookie.d.mts +1 -0
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/lib/utils/env.d.mts +1 -0
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/lib/utils/logger.d.mts +1 -0
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/lib/utils/webauthn-utils.d.mts +1 -0
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/providers/credentials.d.mts +1 -0
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/providers/email.d.mts +1 -0
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/providers/index.d.mts +1 -0
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/providers/nodemailer.d.mts +1 -0
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/providers/oauth.d.mts +1 -0
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/providers/webauthn.d.mts +1 -0
- package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/types.d.mts +22 -0
- package/dist/boilerplates/@batijs/authjs/types/server/authjs-handler.d.mts +27 -0
- package/dist/boilerplates/@batijs/aws/bati.config.mjs +37 -0
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +9 -18
- package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +9 -19
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +33 -124
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +14 -22
- package/dist/boilerplates/@batijs/aws/files/$vite.config.ts.js +6 -12
- package/dist/boilerplates/@batijs/aws/files/asset-package.json.mjs +48 -0
- package/dist/boilerplates/@batijs/aws/files/cdk/$stack-name-suffix.json.js +9 -19
- package/dist/boilerplates/@batijs/aws/types/cdk/bin/infrastructure.d.mts +13 -0
- package/dist/boilerplates/@batijs/aws/types/cdk/lib/vike-stack.d.mts +14 -0
- package/dist/boilerplates/@batijs/aws/types/tests/aws_handler.spec.d.mts +1 -0
- package/dist/boilerplates/@batijs/aws/types/vitest.config.d.mts +6 -0
- package/dist/boilerplates/@batijs/biome/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/biome/files/$biome.json.js +78 -104
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +11 -75
- package/dist/boilerplates/@batijs/biome/files/asset-package.json.mjs +26 -0
- package/dist/boilerplates/@batijs/cloudflare/bati.config.mjs +31 -0
- package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +9 -19
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +13 -89
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +7 -15
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +16 -0
- package/dist/boilerplates/@batijs/cloudflare/files/asset-package.json.mjs +26 -0
- package/dist/boilerplates/@batijs/cloudflare/files/wrangler.jsonc +1 -1
- package/dist/boilerplates/@batijs/compiled/bati.config.mjs +25 -0
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +5 -70
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +12 -21
- package/dist/boilerplates/@batijs/compiled/files/asset-package.json.mjs +27 -0
- package/dist/boilerplates/@batijs/d1/bati.config.mjs +27 -0
- package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +9 -18
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +5 -82
- package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +13 -21
- package/dist/boilerplates/@batijs/d1/files/asset-package.json.mjs +29 -0
- package/dist/boilerplates/@batijs/d1/types/database/d1/helpers.d.mts +9 -0
- package/dist/boilerplates/@batijs/d1-kysely/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/d1-kysely/files/$package.json.js +11 -73
- package/dist/boilerplates/@batijs/d1-kysely/files/asset-package.json.mjs +24 -0
- package/dist/boilerplates/@batijs/d1-sqlite/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +11 -87
- package/dist/boilerplates/@batijs/d1-sqlite/files/asset-package.json.mjs +28 -0
- package/dist/boilerplates/@batijs/d1-sqlite/types/database/d1/queries/todos.d.mts +8 -0
- package/dist/boilerplates/@batijs/drizzle/bati.config.mjs +32 -0
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +6 -15
- package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +9 -18
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +18 -111
- package/dist/boilerplates/@batijs/drizzle/files/asset-package.json.mjs +41 -0
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.mts +13 -0
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/queries/todos.d.mts +60 -0
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/schema/todos.d.mts +50 -0
- package/dist/boilerplates/@batijs/drizzle/types/drizzle.config.d.mts +5 -0
- package/dist/boilerplates/@batijs/edgeone/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/edgeone/files/$package.json.js +9 -0
- package/dist/boilerplates/@batijs/edgeone/files/$vite.config.ts.js +15 -0
- package/dist/boilerplates/@batijs/edgeone/files/asset-package.json.mjs +25 -0
- package/dist/boilerplates/@batijs/eslint/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +13 -91
- package/dist/boilerplates/@batijs/eslint/files/asset-package.json.mjs +35 -0
- package/dist/boilerplates/@batijs/eslint/files/eslint.config.ts +4 -0
- package/dist/boilerplates/@batijs/eslint/types/eslint.config.d.mts +6 -0
- package/dist/boilerplates/@batijs/express/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/express/files/$package.json.js +10 -88
- package/dist/boilerplates/@batijs/express/files/{server/entry.ts → +server.ts} +11 -8
- package/dist/boilerplates/@batijs/express/files/asset-package.json.mjs +35 -0
- package/dist/boilerplates/@batijs/express/types/+server.d.mts +6 -0
- package/dist/boilerplates/@batijs/fastify/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +11 -89
- package/dist/boilerplates/@batijs/fastify/files/{server/entry.ts → +server.ts} +13 -8
- package/dist/boilerplates/@batijs/fastify/files/asset-package.json.mjs +36 -0
- package/dist/boilerplates/@batijs/fastify/types/+server.d.mts +6 -0
- package/dist/boilerplates/@batijs/google-analytics/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +6 -20
- package/dist/boilerplates/@batijs/h3/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +11 -93
- package/dist/boilerplates/@batijs/h3/files/{server/entry.ts → +server.ts} +14 -9
- package/dist/boilerplates/@batijs/h3/files/asset-package.json.mjs +36 -0
- package/dist/boilerplates/@batijs/h3/types/+server.d.mts +10 -0
- package/dist/boilerplates/@batijs/hono/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +10 -98
- package/dist/boilerplates/@batijs/hono/files/+server.ts +17 -0
- package/dist/boilerplates/@batijs/hono/files/asset-package.json.mjs +43 -0
- package/dist/boilerplates/@batijs/hono/files/entry_aws_lambda.ts +2 -2
- package/dist/boilerplates/@batijs/hono/files/server/{entry.ts → hono.ts} +6 -20
- package/dist/boilerplates/@batijs/hono/types/+server.d.mts +11 -0
- package/dist/boilerplates/@batijs/hono/types/entry_aws_lambda.d.mts +8 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/handler.d.mts +245 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/index.d.mts +2 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/alb.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/amplify-resolver.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-authorizer.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.mts +18 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/appsync-resolver.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/autoscaling.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cdk-custom-resource.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudformation-custom-resource.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudfront-request.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudfront-response.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudwatch-alarm.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudwatch-events.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudwatch-logs.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codebuild-cloudwatch-state.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codecommit.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-action.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-pipeline.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-stage.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/create-auth-challenge.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-email-sender.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-message.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-sms-sender.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/define-auth-challenge.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/inbound-federation.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-authentication.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-confirmation.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-authentication.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-signup.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v2.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v3.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/user-migration.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/verify-auth-challenge-response.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/connect-contact-flow.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/dynamodb-stream.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/eventbridge.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/guard-duty-event-notification.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/iot-authorizer.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/iot.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/kinesis-firehose-transformation.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/kinesis-stream.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/lambda-function-url.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/lex-v2.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/lex.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/msk.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/s3-batch.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/s3-event-notification.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/s3.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/secretsmanager.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/self-managed-kafka.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/ses.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/sns.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/sqs.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/transfer-family-authorizer.d.mts +1 -0
- package/dist/boilerplates/@batijs/hono/types/server/hono.d.mts +7 -0
- package/dist/boilerplates/@batijs/kysely/bati.config.mjs +27 -0
- package/dist/boilerplates/@batijs/kysely/files/$.env.js +6 -15
- package/dist/boilerplates/@batijs/kysely/files/$TODO.md.js +10 -20
- package/dist/boilerplates/@batijs/kysely/files/$package.json.js +14 -116
- package/dist/boilerplates/@batijs/kysely/files/asset-package.json.mjs +45 -0
- package/dist/boilerplates/@batijs/kysely/files/database/kysely/db.ts +2 -2
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/db.d.mts +8 -0
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/migrate.d.mts +1 -0
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/migrations/001_create_todos_table.d.mts +8 -0
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/queries/todos.d.mts +19 -0
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/types.d.mts +14 -0
- package/dist/boilerplates/@batijs/mantine/bati.config.mjs +18 -0
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +8 -17
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +9 -97
- package/dist/boilerplates/@batijs/mantine/files/asset-package.json.mjs +44 -0
- package/dist/boilerplates/@batijs/mantine/types/components/Link.d.mts +12 -0
- package/dist/boilerplates/@batijs/mantine/types/pages/+Layout.d.mts +9 -0
- package/dist/boilerplates/@batijs/netlify/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/netlify/files/$package.json.js +9 -0
- package/dist/boilerplates/@batijs/netlify/files/$vite.config.ts.js +19 -0
- package/dist/boilerplates/@batijs/netlify/files/asset-package.json.mjs +26 -0
- package/dist/boilerplates/@batijs/oxlint/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/oxlint/files/$.oxlintrc.json.js +41 -45
- package/dist/boilerplates/@batijs/oxlint/files/$package.json.js +10 -74
- package/dist/boilerplates/@batijs/oxlint/files/asset-package.json.mjs +26 -0
- package/dist/boilerplates/@batijs/plausible.io/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +9 -18
- package/dist/boilerplates/@batijs/pnpm/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +19 -35
- package/dist/boilerplates/@batijs/prettier/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +5 -68
- package/dist/boilerplates/@batijs/prettier/files/.prettierignore +3 -0
- package/dist/boilerplates/@batijs/prettier/files/asset-package.json.mjs +25 -0
- package/dist/boilerplates/@batijs/prisma/bati.config.mjs +26 -0
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +6 -20
- package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +9 -19
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +11 -76
- package/dist/boilerplates/@batijs/prisma/files/asset-package.json.mjs +27 -0
- package/dist/boilerplates/@batijs/react/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/react/files/$README.md.js +14 -25
- package/dist/boilerplates/@batijs/react/files/$package.json.js +15 -185
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +9 -17
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +10 -19
- package/dist/boilerplates/@batijs/react/files/asset-package.json.mjs +75 -0
- package/dist/boilerplates/@batijs/react/files/pages/+config.ts +11 -13
- package/dist/boilerplates/@batijs/react/types/components/Link.d.mts +12 -0
- package/dist/boilerplates/@batijs/react/types/pages/+Head.d.mts +6 -0
- package/dist/boilerplates/@batijs/react/types/pages/+Layout.d.mts +10 -0
- package/dist/boilerplates/@batijs/react/types/pages/+config.d.mts +6 -0
- package/dist/boilerplates/@batijs/react/types/pages/+onPageTransitionEnd.d.mts +4 -0
- package/dist/boilerplates/@batijs/react/types/pages/+onPageTransitionStart.d.mts +6 -0
- package/dist/boilerplates/@batijs/react/types/pages/_error/+Page.d.mts +6 -0
- package/dist/boilerplates/@batijs/react/types/pages/index/+Page.d.mts +6 -0
- package/dist/boilerplates/@batijs/react/types/pages/index/Counter.d.mts +6 -0
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+Page.d.mts +6 -0
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+data.d.mts +10 -0
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+Page.d.mts +6 -0
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+data.d.mts +9 -0
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/types.d.mts +12 -0
- package/dist/boilerplates/@batijs/react/types/pages/todo/+Page.d.mts +6 -0
- package/dist/boilerplates/@batijs/react/types/pages/todo/TodoList.d.mts +6 -0
- package/dist/boilerplates/@batijs/react-sentry/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +5 -91
- package/dist/boilerplates/@batijs/react-sentry/files/asset-package.json.mjs +38 -0
- package/dist/boilerplates/@batijs/react-sentry/types/pages/sentry/+Page.d.mts +6 -0
- package/dist/boilerplates/@batijs/react-sentry/types/sentry.browser.config.d.mts +4 -0
- package/dist/boilerplates/@batijs/sentry/bati.config.mjs +22 -0
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +9 -27
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +9 -18
- package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +8 -16
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +5 -81
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +13 -25
- package/dist/boilerplates/@batijs/sentry/files/asset-package.json.mjs +26 -0
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +19 -31
- package/dist/boilerplates/@batijs/shadcn-ui/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +9 -19
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +16 -98
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +10 -18
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +27 -38
- package/dist/boilerplates/@batijs/shadcn-ui/files/asset-package.json.mjs +34 -0
- package/dist/boilerplates/@batijs/shadcn-ui/types/lib/utils.d.mts +6 -0
- package/dist/boilerplates/@batijs/shared/bati.config.mjs +18 -0
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +21 -43
- package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +15 -29
- package/dist/boilerplates/@batijs/shared/files/asset-const.mjs +4 -0
- package/dist/boilerplates/@batijs/shared/files/gitignore +3 -0
- package/dist/boilerplates/@batijs/shared/files/package.json +3 -3
- package/dist/boilerplates/@batijs/shared/files/vite.config.ts +0 -2
- package/dist/boilerplates/@batijs/shared/hooks/after.mjs +19 -0
- package/dist/boilerplates/@batijs/shared/hooks/asset-const.mjs +4 -0
- package/dist/boilerplates/@batijs/shared/types/vite.config.d.mts +6 -0
- package/dist/boilerplates/@batijs/shared-db/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.mts +26 -0
- package/dist/boilerplates/@batijs/shared-server/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +5 -80
- package/dist/boilerplates/@batijs/shared-server/files/asset-package.json.mjs +30 -0
- package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.mts +29 -0
- package/dist/boilerplates/@batijs/shared-todo/bati.config.mjs +12 -0
- package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+config.d.mts +6 -0
- package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+data.d.mts +11 -0
- package/dist/boilerplates/@batijs/solid/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +14 -25
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +9 -177
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +9 -17
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +10 -19
- package/dist/boilerplates/@batijs/solid/files/asset-package.json.mjs +67 -0
- package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +11 -13
- package/dist/boilerplates/@batijs/solid/types/components/Link.d.mts +9 -0
- package/dist/boilerplates/@batijs/solid/types/pages/+Head.d.mts +6 -0
- package/dist/boilerplates/@batijs/solid/types/pages/+Layout.d.mts +8 -0
- package/dist/boilerplates/@batijs/solid/types/pages/+config.d.mts +6 -0
- package/dist/boilerplates/@batijs/solid/types/pages/+onPageTransitionEnd.d.mts +4 -0
- package/dist/boilerplates/@batijs/solid/types/pages/+onPageTransitionStart.d.mts +6 -0
- package/dist/boilerplates/@batijs/solid/types/pages/_error/+Page.d.mts +6 -0
- package/dist/boilerplates/@batijs/solid/types/pages/index/+Page.d.mts +6 -0
- package/dist/boilerplates/@batijs/solid/types/pages/index/Counter.d.mts +6 -0
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+Page.d.mts +6 -0
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+data.d.mts +10 -0
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+Page.d.mts +6 -0
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+data.d.mts +9 -0
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/types.d.mts +12 -0
- package/dist/boilerplates/@batijs/solid/types/pages/todo/+Page.d.mts +6 -0
- package/dist/boilerplates/@batijs/solid/types/pages/todo/TodoList.d.mts +6 -0
- package/dist/boilerplates/@batijs/solid-sentry/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +5 -89
- package/dist/boilerplates/@batijs/solid-sentry/files/asset-package.json.mjs +36 -0
- package/dist/boilerplates/@batijs/solid-sentry/types/pages/sentry/+Page.d.mts +6 -0
- package/dist/boilerplates/@batijs/solid-sentry/types/sentry.browser.config.d.mts +4 -0
- package/dist/boilerplates/@batijs/sqlite/bati.config.mjs +22 -0
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +6 -15
- package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +10 -20
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +8 -104
- package/dist/boilerplates/@batijs/sqlite/files/asset-package.json.mjs +40 -0
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/db.d.mts +6 -0
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/queries/todos.d.mts +11 -0
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/schema/all.d.mts +1 -0
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/schema/todos.d.mts +1 -0
- package/dist/boilerplates/@batijs/storybook/bati.config.mjs +23 -0
- package/dist/boilerplates/@batijs/storybook/hooks/after.mjs +20 -0
- package/dist/boilerplates/@batijs/tailwindcss/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +5 -74
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +10 -19
- package/dist/boilerplates/@batijs/tailwindcss/files/asset-package.json.mjs +30 -0
- package/dist/boilerplates/@batijs/telefunc/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +5 -89
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +11 -20
- package/dist/boilerplates/@batijs/telefunc/files/asset-package.json.mjs +36 -0
- package/dist/boilerplates/@batijs/telefunc/types/pages/todo/TodoList.telefunc.d.mts +8 -0
- package/dist/boilerplates/@batijs/telefunc/types/server/telefunc-handler.d.mts +6 -0
- package/dist/boilerplates/@batijs/trpc/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +5 -95
- package/dist/boilerplates/@batijs/trpc/files/asset-package.json.mjs +38 -0
- package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.mts +11 -0
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.mts +40 -0
- package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.mts +75 -0
- package/dist/boilerplates/@batijs/ts-rest/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +9 -95
- package/dist/boilerplates/@batijs/ts-rest/files/asset-package.json.mjs +38 -0
- package/dist/boilerplates/@batijs/ts-rest/types/server/ts-rest-handler.d.mts +6 -0
- package/dist/boilerplates/@batijs/ts-rest/types/ts-rest/client.d.mts +48 -0
- package/dist/boilerplates/@batijs/ts-rest/types/ts-rest/contract.d.mts +36 -0
- package/dist/boilerplates/@batijs/universal-deploy/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/universal-deploy/files/$package.json.js +20 -0
- package/dist/boilerplates/@batijs/universal-deploy/files/asset-package.json.mjs +24 -0
- package/dist/boilerplates/@batijs/vercel/bati.config.mjs +20 -0
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +5 -71
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +15 -0
- package/dist/boilerplates/@batijs/vercel/files/asset-package.json.mjs +28 -0
- package/dist/boilerplates/@batijs/vue/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +14 -25
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +9 -125
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +5 -14
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +10 -19
- package/dist/boilerplates/@batijs/vue/files/asset-package.json.mjs +51 -0
- package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +11 -13
- package/dist/boilerplates/@batijs/vue/types/node_modules/.pnpm/vike-vue@0.9.11_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_vike@0.4.257_@cloudflare+worke_9bf683edb0d95192f6b3d1e3b5f5e765/node_modules/vike-vue/dist/types/VikeHooks.d.mts +17 -0
- package/dist/boilerplates/@batijs/vue/types/node_modules/.pnpm/vike-vue@0.9.11_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_vike@0.4.257_@cloudflare+worke_9bf683edb0d95192f6b3d1e3b5f5e765/node_modules/vike-vue/dist/types/public.d.mts +1 -0
- package/dist/boilerplates/@batijs/vue/types/pages/+config.d.mts +6 -0
- package/dist/boilerplates/@batijs/vue/types/pages/+onCreateApp.d.mts +5 -0
- package/dist/boilerplates/@batijs/vue/types/pages/+onPageTransitionEnd.d.mts +4 -0
- package/dist/boilerplates/@batijs/vue/types/pages/+onPageTransitionStart.d.mts +6 -0
- package/dist/boilerplates/@batijs/vue/types/pages/star-wars/@id/+data.d.mts +10 -0
- package/dist/boilerplates/@batijs/vue/types/pages/star-wars/index/+data.d.mts +9 -0
- package/dist/boilerplates/@batijs/vue/types/pages/star-wars/types.d.mts +12 -0
- package/dist/boilerplates/@batijs/vue-sentry/bati.config.mjs +14 -0
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +5 -83
- package/dist/boilerplates/@batijs/vue-sentry/files/asset-package.json.mjs +30 -0
- package/dist/boilerplates/@batijs/vue-sentry/types/sentry.browser.config.d.mts +4 -0
- package/dist/boilerplates/boilerplates.json +14 -2
- package/dist/index.js +2864 -3939
- package/package.json +12 -12
- package/dist/boilerplates/@batijs/auth0/bati.config.js +0 -25
- package/dist/boilerplates/@batijs/authjs/bati.config.js +0 -20
- package/dist/boilerplates/@batijs/authjs/types/server/authjs-handler.d.ts +0 -22
- package/dist/boilerplates/@batijs/aws/bati.config.js +0 -31
- package/dist/boilerplates/@batijs/aws/types/cdk/bin/infrastructure.d.ts +0 -11
- package/dist/boilerplates/@batijs/aws/types/cdk/lib/vike-stack.d.ts +0 -13
- package/dist/boilerplates/@batijs/aws/types/tests/aws_handler.spec.d.ts +0 -1
- package/dist/boilerplates/@batijs/aws/types/vitest.config.d.ts +0 -2
- package/dist/boilerplates/@batijs/biome/bati.config.js +0 -20
- package/dist/boilerplates/@batijs/cloudflare/bati.config.js +0 -30
- package/dist/boilerplates/@batijs/compiled/bati.config.js +0 -22
- package/dist/boilerplates/@batijs/d1/bati.config.js +0 -33
- package/dist/boilerplates/@batijs/d1/types/database/d1/helpers.d.ts +0 -5
- package/dist/boilerplates/@batijs/d1-kysely/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/d1-sqlite/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/d1-sqlite/types/database/d1/queries/todos.d.ts +0 -5
- package/dist/boilerplates/@batijs/drizzle/bati.config.js +0 -33
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.ts +0 -7
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/queries/todos.d.ts +0 -54
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/schema/todos.d.ts +0 -45
- package/dist/boilerplates/@batijs/drizzle/types/drizzle.config.d.ts +0 -3
- package/dist/boilerplates/@batijs/eslint/bati.config.js +0 -20
- package/dist/boilerplates/@batijs/eslint/types/eslint.config.d.ts +0 -2
- package/dist/boilerplates/@batijs/express/bati.config.js +0 -20
- package/dist/boilerplates/@batijs/express/types/server/entry.d.ts +0 -3
- package/dist/boilerplates/@batijs/fastify/bati.config.js +0 -20
- package/dist/boilerplates/@batijs/fastify/types/server/entry.d.ts +0 -3
- package/dist/boilerplates/@batijs/google-analytics/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/h3/bati.config.js +0 -20
- package/dist/boilerplates/@batijs/h3/types/server/entry.d.ts +0 -3
- package/dist/boilerplates/@batijs/hono/bati.config.js +0 -20
- package/dist/boilerplates/@batijs/hono/types/entry_aws_lambda.d.ts +0 -3
- package/dist/boilerplates/@batijs/hono/types/server/entry.d.ts +0 -3
- package/dist/boilerplates/@batijs/kysely/bati.config.js +0 -35
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/db.d.ts +0 -5
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/migrate.d.ts +0 -1
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/migrations/001_create_todos_table.d.ts +0 -4
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/queries/todos.d.ts +0 -15
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/types.d.ts +0 -10
- package/dist/boilerplates/@batijs/mantine/bati.config.js +0 -21
- package/dist/boilerplates/@batijs/mantine/types/components/Link.d.ts +0 -4
- package/dist/boilerplates/@batijs/mantine/types/pages/+Layout.d.ts +0 -4
- package/dist/boilerplates/@batijs/oxlint/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/photon/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/photon/files/$README.md.js +0 -33
- package/dist/boilerplates/@batijs/photon/files/$package.json.js +0 -95
- package/dist/boilerplates/@batijs/plausible.io/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/pnpm/bati.config.js +0 -18
- package/dist/boilerplates/@batijs/prettier/bati.config.js +0 -20
- package/dist/boilerplates/@batijs/prisma/bati.config.js +0 -32
- package/dist/boilerplates/@batijs/react/bati.config.js +0 -20
- package/dist/boilerplates/@batijs/react/types/components/Link.d.ts +0 -4
- package/dist/boilerplates/@batijs/react/types/pages/+Head.d.ts +0 -1
- package/dist/boilerplates/@batijs/react/types/pages/+Layout.d.ts +0 -5
- package/dist/boilerplates/@batijs/react/types/pages/+config.d.ts +0 -283
- package/dist/boilerplates/@batijs/react/types/pages/+onPageTransitionEnd.d.ts +0 -1
- package/dist/boilerplates/@batijs/react/types/pages/+onPageTransitionStart.d.ts +0 -2
- package/dist/boilerplates/@batijs/react/types/pages/_error/+Page.d.ts +0 -1
- package/dist/boilerplates/@batijs/react/types/pages/index/+Page.d.ts +0 -1
- package/dist/boilerplates/@batijs/react/types/pages/index/Counter.d.ts +0 -1
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+Page.d.ts +0 -1
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+data.d.ts +0 -6
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+Page.d.ts +0 -1
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+data.d.ts +0 -5
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/types.d.ts +0 -9
- package/dist/boilerplates/@batijs/react/types/pages/todo/+Page.d.ts +0 -1
- package/dist/boilerplates/@batijs/react/types/pages/todo/TodoList.d.ts +0 -1
- package/dist/boilerplates/@batijs/react-sentry/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/react-sentry/types/pages/sentry/+Page.d.ts +0 -1
- package/dist/boilerplates/@batijs/react-sentry/types/sentry.browser.config.d.ts +0 -1
- package/dist/boilerplates/@batijs/sentry/bati.config.js +0 -25
- package/dist/boilerplates/@batijs/shadcn-ui/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/shadcn-ui/types/lib/utils.d.ts +0 -2
- package/dist/boilerplates/@batijs/shared/bati.config.js +0 -19
- package/dist/boilerplates/@batijs/shared/hooks/after.js +0 -28
- package/dist/boilerplates/@batijs/shared/types/vite.config.d.ts +0 -2
- package/dist/boilerplates/@batijs/shared-db/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.ts +0 -22
- package/dist/boilerplates/@batijs/shared-server/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +0 -25
- package/dist/boilerplates/@batijs/shared-todo/bati.config.js +0 -15
- package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+config.d.ts +0 -3
- package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+data.d.ts +0 -5
- package/dist/boilerplates/@batijs/solid/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/solid/types/components/Link.d.ts +0 -4
- package/dist/boilerplates/@batijs/solid/types/pages/+Head.d.ts +0 -1
- package/dist/boilerplates/@batijs/solid/types/pages/+Layout.d.ts +0 -6
- package/dist/boilerplates/@batijs/solid/types/pages/+config.d.ts +0 -193
- package/dist/boilerplates/@batijs/solid/types/pages/+onPageTransitionEnd.d.ts +0 -1
- package/dist/boilerplates/@batijs/solid/types/pages/+onPageTransitionStart.d.ts +0 -2
- package/dist/boilerplates/@batijs/solid/types/pages/_error/+Page.d.ts +0 -1
- package/dist/boilerplates/@batijs/solid/types/pages/index/+Page.d.ts +0 -1
- package/dist/boilerplates/@batijs/solid/types/pages/index/Counter.d.ts +0 -2
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+Page.d.ts +0 -1
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+data.d.ts +0 -6
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+Page.d.ts +0 -1
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+data.d.ts +0 -5
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/types.d.ts +0 -9
- package/dist/boilerplates/@batijs/solid/types/pages/todo/+Page.d.ts +0 -1
- package/dist/boilerplates/@batijs/solid/types/pages/todo/TodoList.d.ts +0 -1
- package/dist/boilerplates/@batijs/solid-sentry/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/solid-sentry/types/pages/sentry/+Page.d.ts +0 -1
- package/dist/boilerplates/@batijs/solid-sentry/types/sentry.browser.config.d.ts +0 -1
- package/dist/boilerplates/@batijs/sqlite/bati.config.js +0 -25
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/db.d.ts +0 -2
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/queries/todos.d.ts +0 -6
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/schema/all.d.ts +0 -1
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/schema/todos.d.ts +0 -1
- package/dist/boilerplates/@batijs/storybook/bati.config.js +0 -28
- package/dist/boilerplates/@batijs/storybook/hooks/after.js +0 -26
- package/dist/boilerplates/@batijs/tailwindcss/bati.config.js +0 -22
- package/dist/boilerplates/@batijs/telefunc/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/telefunc/types/pages/todo/TodoList.telefunc.d.ts +0 -3
- package/dist/boilerplates/@batijs/telefunc/types/server/telefunc-handler.d.ts +0 -2
- package/dist/boilerplates/@batijs/trpc/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.ts +0 -6
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +0 -31
- package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.ts +0 -70
- package/dist/boilerplates/@batijs/ts-rest/bati.config.js +0 -20
- package/dist/boilerplates/@batijs/ts-rest/types/server/ts-rest-handler.d.ts +0 -2
- package/dist/boilerplates/@batijs/ts-rest/types/ts-rest/client.d.ts +0 -43
- package/dist/boilerplates/@batijs/ts-rest/types/ts-rest/contract.d.ts +0 -31
- package/dist/boilerplates/@batijs/vercel/bati.config.js +0 -21
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +0 -19
- package/dist/boilerplates/@batijs/vue/bati.config.js +0 -20
- package/dist/boilerplates/@batijs/vue/types/pages/+config.d.ts +0 -3
- package/dist/boilerplates/@batijs/vue/types/pages/+onCreateApp.d.ts +0 -2
- package/dist/boilerplates/@batijs/vue/types/pages/+onPageTransitionEnd.d.ts +0 -1
- package/dist/boilerplates/@batijs/vue/types/pages/+onPageTransitionStart.d.ts +0 -2
- package/dist/boilerplates/@batijs/vue/types/pages/star-wars/@id/+data.d.ts +0 -6
- package/dist/boilerplates/@batijs/vue/types/pages/star-wars/index/+data.d.ts +0 -5
- package/dist/boilerplates/@batijs/vue/types/pages/star-wars/types.d.ts +0 -9
- package/dist/boilerplates/@batijs/vue-sentry/bati.config.js +0 -17
- package/dist/boilerplates/@batijs/vue-sentry/types/sentry.browser.config.d.ts +0 -1
- package/dist/chunk-DBC5FRJG.js +0 -208176
- package/dist/chunk-IAWYWZSL.js +0 -42
- package/dist/chunk-IHX3I5SM.js +0 -46
- package/dist/jiti-PKZMRTZN-BIHN3GUM.js +0 -2981
- package/dist/src-5HGZFBZ3-CGUDMVWF.js +0 -468
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region ../../packages/core/dist/config.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
if (!e) throw Error(t);
|
|
4
|
+
}
|
|
5
|
+
function t(t) {
|
|
6
|
+
return `enforce` in t && e(t.enforce === `pre` || t.enforce === `post`, `'enforce' must be 'pre' or 'post', was ${t.enforce}`), `if` in t && e(typeof t.if == `function`, `'if' must be a function`), `nextSteps` in t && e(typeof t.nextSteps == `function`, `'nextSteps' must be a function`), `knip` in t && (e(typeof t.knip == `object` && t.knip !== null, `'knip' must be an object`), `entry` in t.knip && e(Array.isArray(t.knip.entry), `'knip.entry' must be an array`), `ignoreDependencies` in t.knip && e(Array.isArray(t.knip.ignoreDependencies), `'knip.ignoreDependencies' must be an array`), `ignore` in t.knip && e(Array.isArray(t.knip.ignore), `'knip.ignore' must be an array`), `vite` in t.knip && e(typeof t.knip.vite == `boolean`, `'knip.vite' must be a boolean`)), t;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region bati.config.ts
|
|
10
|
+
var bati_config_default = t({
|
|
11
|
+
if(meta) {
|
|
12
|
+
return meta.BATI.has("hono");
|
|
13
|
+
},
|
|
14
|
+
knip: { entry: ["+server.ts"] }
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { bati_config_default as default };
|
|
@@ -1,102 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
3
|
-
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
2
|
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-DBC5FRJG.js";
|
|
8
|
-
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-IHX3I5SM.js";
|
|
10
|
-
|
|
11
|
-
// ../../boilerplates/hono/dist/files/$package.json.js
|
|
12
|
-
var __create = Object.create;
|
|
13
|
-
var __defProp = Object.defineProperty;
|
|
14
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
15
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
16
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
17
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
18
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
19
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
20
|
-
};
|
|
21
|
-
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
-
for (let key of __getOwnPropNames(from))
|
|
24
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
25
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
26
|
-
}
|
|
27
|
-
return to;
|
|
28
|
-
};
|
|
29
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
-
mod
|
|
36
|
-
));
|
|
37
|
-
var require_package = __commonJS({
|
|
38
|
-
"package.json"(exports, module) {
|
|
39
|
-
module.exports = {
|
|
40
|
-
name: "@batijs/hono",
|
|
41
|
-
private: true,
|
|
42
|
-
version: "0.0.1",
|
|
43
|
-
description: "",
|
|
44
|
-
type: "module",
|
|
45
|
-
scripts: {
|
|
46
|
-
"check-types": "tsc --noEmit",
|
|
47
|
-
build: "bati-compile-boilerplate"
|
|
48
|
-
},
|
|
49
|
-
keywords: [],
|
|
50
|
-
author: "",
|
|
51
|
-
license: "MIT",
|
|
52
|
-
devDependencies: {
|
|
53
|
-
"@auth/core": "^0.41.1",
|
|
54
|
-
"@batijs/compile": "workspace:*",
|
|
55
|
-
"@photonjs/hono": "^0.1.12",
|
|
56
|
-
"@trpc/server": "^11.13.4",
|
|
57
|
-
"@types/aws-lambda": "^8.10.161",
|
|
58
|
-
"@types/node": "^20.19.37",
|
|
59
|
-
dotenv: "^17.3.1",
|
|
60
|
-
hono: "^4.12.8",
|
|
61
|
-
telefunc: "^0.2.19",
|
|
62
|
-
vike: "^0.4.255",
|
|
63
|
-
"vike-photon": "^0.1.24",
|
|
64
|
-
vite: "^7.3.1"
|
|
65
|
-
},
|
|
66
|
-
dependencies: {
|
|
67
|
-
"@batijs/core": "workspace:*"
|
|
68
|
-
},
|
|
69
|
-
files: [
|
|
70
|
-
"dist/"
|
|
71
|
-
],
|
|
72
|
-
exports: {
|
|
73
|
-
"./entry_aws_lambda": {
|
|
74
|
-
types: "./dist/types/entry_aws_lambda.d.ts"
|
|
75
|
-
},
|
|
76
|
-
"./server/entry": {
|
|
77
|
-
types: "./dist/types/server/entry.d.ts"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
typesVersions: {
|
|
81
|
-
"*": {
|
|
82
|
-
entry_aws_lambda: [
|
|
83
|
-
"./dist/types/entry_aws_lambda.d.ts"
|
|
84
|
-
],
|
|
85
|
-
"server/entry": [
|
|
86
|
-
"./dist/types/server/entry.d.ts"
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
});
|
|
3
|
+
import { loadPackageJson } from "@batijs/core";
|
|
4
|
+
//#region ../../boilerplates/hono/dist/files/$package.json.mjs
|
|
93
5
|
async function getPackageJson(props) {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
6
|
+
return (await loadPackageJson(props, await import("../../../../asset-package.json-rWJjT-Xv.js").then((x) => x.default))).addDevDependencies(["@types/node"]).addDevDependencies(["@types/aws-lambda"], props.meta.BATI.has("aws")).addDependencies([
|
|
7
|
+
"@vikejs/hono",
|
|
8
|
+
"hono",
|
|
9
|
+
"vite",
|
|
10
|
+
"vike"
|
|
11
|
+
]).addDependencies(["dotenv"], (props.meta.BATI.has("auth0") || props.meta.BATI.hasDatabase) && !props.meta.BATI.has("cloudflare"));
|
|
99
12
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { getPackageJson as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// (BATI.has("auth0") || BATI.hasDatabase) && !BATI.has("cloudflare")
|
|
2
|
+
import "dotenv/config";
|
|
3
|
+
import type { Server } from "vike/types";
|
|
4
|
+
import { app } from "./server/hono";
|
|
5
|
+
|
|
6
|
+
const port = process.env.PORT ? parseInt(process.env.PORT, 10) : 3000;
|
|
7
|
+
|
|
8
|
+
// https://vike.dev/server
|
|
9
|
+
export default {
|
|
10
|
+
fetch: app.fetch,
|
|
11
|
+
prod: {
|
|
12
|
+
port,
|
|
13
|
+
//# BATI.has("aws")
|
|
14
|
+
// We need to override static root config when deploying to AWS
|
|
15
|
+
static: `${process.cwd()}/dist/client`,
|
|
16
|
+
},
|
|
17
|
+
} satisfies Server;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//#region package.json
|
|
2
|
+
var package_default = {
|
|
3
|
+
name: "@batijs/hono",
|
|
4
|
+
"private": true,
|
|
5
|
+
version: "0.0.1",
|
|
6
|
+
description: "",
|
|
7
|
+
type: "module",
|
|
8
|
+
scripts: {
|
|
9
|
+
"check-types": "tsc --noEmit",
|
|
10
|
+
"build": "bati-compile-boilerplate"
|
|
11
|
+
},
|
|
12
|
+
keywords: [],
|
|
13
|
+
author: "",
|
|
14
|
+
license: "MIT",
|
|
15
|
+
devDependencies: {
|
|
16
|
+
"@auth/core": "^0.41.1",
|
|
17
|
+
"@batijs/compile": "workspace:*",
|
|
18
|
+
"@batijs/core": "workspace:",
|
|
19
|
+
"@trpc/server": "^11.16.0",
|
|
20
|
+
"@types/aws-lambda": "^8.10.161",
|
|
21
|
+
"@types/node": "^20.19.37",
|
|
22
|
+
"@vikejs/hono": "^0.2.0",
|
|
23
|
+
"dotenv": "^17.4.1",
|
|
24
|
+
"hono": "^4.12.12",
|
|
25
|
+
"telefunc": "^0.2.19",
|
|
26
|
+
"vike": "0.4.257",
|
|
27
|
+
"vite": "^8.0.3"
|
|
28
|
+
},
|
|
29
|
+
files: ["dist/"],
|
|
30
|
+
exports: {
|
|
31
|
+
"./+server": { "types": "./dist/types/+server.d.mts" },
|
|
32
|
+
"./entry_aws_lambda": { "types": "./dist/types/entry_aws_lambda.d.mts" },
|
|
33
|
+
"./server/hono": { "types": "./dist/types/server/hono.d.mts" }
|
|
34
|
+
},
|
|
35
|
+
typesVersions: { "*": {
|
|
36
|
+
"+server": ["./dist/types/+server.d.mts"],
|
|
37
|
+
"entry_aws_lambda": ["./dist/types/entry_aws_lambda.d.mts"],
|
|
38
|
+
"server/hono": ["./dist/types/server/hono.d.mts"]
|
|
39
|
+
} },
|
|
40
|
+
nx: { "tags": ["type:boilerplate"] }
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { package_default as default };
|
|
@@ -14,7 +14,7 @@ import { Hono } from "hono";
|
|
|
14
14
|
import type { LambdaContext, LambdaEvent } from "hono/aws-lambda";
|
|
15
15
|
import { handle } from "hono/aws-lambda";
|
|
16
16
|
// @ts-expect-error loading file compiled by Vite
|
|
17
|
-
import app from "./dist/server/aws.mjs";
|
|
17
|
+
import { app } from "./dist/server/aws.mjs";
|
|
18
18
|
|
|
19
19
|
type Bindings = {
|
|
20
20
|
event: LambdaEvent;
|
|
@@ -23,7 +23,7 @@ type Bindings = {
|
|
|
23
23
|
|
|
24
24
|
const lambdaApp = new Hono<{ Bindings: Bindings }>();
|
|
25
25
|
|
|
26
|
-
lambdaApp.route("/", app
|
|
26
|
+
lambdaApp.route("/", app as Hono);
|
|
27
27
|
const awsHandler = handle(lambdaApp);
|
|
28
28
|
|
|
29
29
|
export const handler: Handler<LambdaEvent, APIGatewayProxyResult> = awsHandler;
|
|
@@ -1,30 +1,16 @@
|
|
|
1
|
-
// (BATI.has("auth0") || BATI.hasDatabase) && !BATI.has("cloudflare")
|
|
2
|
-
import "dotenv/config";
|
|
3
1
|
import { authjsHandler, authjsSessionMiddleware } from "@batijs/authjs/server/authjs-handler";
|
|
4
2
|
import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
|
|
5
3
|
import { createTodoHandler } from "@batijs/shared-server/server/create-todo-handler";
|
|
6
4
|
import { telefuncHandler } from "@batijs/telefunc/server/telefunc-handler";
|
|
7
5
|
import { trpcHandler } from "@batijs/trpc/server/trpc-handler";
|
|
8
6
|
import { tsRestHandler } from "@batijs/ts-rest/server/ts-rest-handler";
|
|
9
|
-
import
|
|
7
|
+
import vike from "@vikejs/hono";
|
|
10
8
|
import { Hono } from "hono";
|
|
11
|
-
import { getMiddlewares } from "vike-photon/universal-middlewares";
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export default startApp() as unknown;
|
|
16
|
-
|
|
17
|
-
function startApp() {
|
|
10
|
+
function getApp() {
|
|
18
11
|
const app = new Hono();
|
|
19
12
|
|
|
20
|
-
|
|
21
|
-
//# BATI.has("aws")
|
|
22
|
-
...getMiddlewares({
|
|
23
|
-
static: {
|
|
24
|
-
// We need to override static root config when deploying to AWS
|
|
25
|
-
root: `${process.cwd()}/dist/client`,
|
|
26
|
-
},
|
|
27
|
-
}),
|
|
13
|
+
vike(app, [
|
|
28
14
|
//# BATI.hasDatabase
|
|
29
15
|
// Make database available in Context as `context.db`
|
|
30
16
|
dbMiddleware,
|
|
@@ -47,7 +33,7 @@ function startApp() {
|
|
|
47
33
|
createTodoHandler,
|
|
48
34
|
]);
|
|
49
35
|
|
|
50
|
-
return
|
|
51
|
-
port,
|
|
52
|
-
});
|
|
36
|
+
return app;
|
|
53
37
|
}
|
|
38
|
+
|
|
39
|
+
export const app = getApp();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as _$hono from "hono";
|
|
2
|
+
//#region files/+server.d.ts
|
|
3
|
+
declare const _default: {
|
|
4
|
+
fetch: (request: Request, Env?: unknown, executionCtx?: _$hono.ExecutionContext) => Response | Promise<Response>;
|
|
5
|
+
prod: {
|
|
6
|
+
port: number;
|
|
7
|
+
static: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { _default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Handler } from "./node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/handler.mjs";
|
|
2
|
+
import { APIGatewayProxyResult } from "./node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.mjs";
|
|
3
|
+
import { LambdaEvent } from "hono/aws-lambda";
|
|
4
|
+
|
|
5
|
+
//#region files/entry_aws_lambda.d.ts
|
|
6
|
+
declare const handler: Handler<LambdaEvent, APIGatewayProxyResult>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { handler };
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { Writable } from "node:stream";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/handler.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The interface that AWS Lambda will invoke your handler with.
|
|
6
|
+
* There are more specialized types for many cases where AWS services
|
|
7
|
+
* invoke your lambda, but you can directly use this type for when you are invoking
|
|
8
|
+
* your lambda directly.
|
|
9
|
+
*
|
|
10
|
+
* See the {@link http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html AWS documentation}
|
|
11
|
+
* for more information about the runtime behavior, and the
|
|
12
|
+
* {@link https://aws.amazon.com/blogs/compute/node-js-8-10-runtime-now-available-in-aws-lambda/ AWS Blog post}
|
|
13
|
+
* introducing the async handler behavior in the 8.10 runtime.
|
|
14
|
+
*
|
|
15
|
+
* @example <caption>Defining a custom handler type</caption>
|
|
16
|
+
* import { Handler } from 'aws-lambda'
|
|
17
|
+
*
|
|
18
|
+
* interface NameEvent {
|
|
19
|
+
* fullName: string
|
|
20
|
+
* }
|
|
21
|
+
* interface NameResult {
|
|
22
|
+
* firstName: string
|
|
23
|
+
* middleNames: string
|
|
24
|
+
* lastName: string
|
|
25
|
+
* }
|
|
26
|
+
* type PersonHandler = Handler<NameEvent, NameResult>
|
|
27
|
+
*
|
|
28
|
+
* export const handler: PersonHandler = async (event) => {
|
|
29
|
+
* const names = event.fullName.split(' ')
|
|
30
|
+
* const firstName = names.shift()
|
|
31
|
+
* const lastName = names.pop()
|
|
32
|
+
* return { firstName, middleNames: names, lastName }
|
|
33
|
+
* }
|
|
34
|
+
*
|
|
35
|
+
* @example <caption>Logs the contents of the event object and returns the location of the logs</caption>
|
|
36
|
+
* import { Handler } from 'aws-lambda'
|
|
37
|
+
*
|
|
38
|
+
* export const handler: Handler = async (event, context) => {
|
|
39
|
+
* console.log("EVENT: \n" + JSON.stringify(event, null, 2))
|
|
40
|
+
* return context.logStreamName
|
|
41
|
+
* }
|
|
42
|
+
*
|
|
43
|
+
* @example <caption>AWS SDK with Async Function and Promises</caption>
|
|
44
|
+
* import { Handler } from 'aws-lambda'
|
|
45
|
+
* import AWS from 'aws-sdk'
|
|
46
|
+
*
|
|
47
|
+
* const s3 = new AWS.S3()
|
|
48
|
+
*
|
|
49
|
+
* export const handler: Handler = async (event) => {
|
|
50
|
+
* const response = await s3.listBuckets().promise()
|
|
51
|
+
* return response?.Buckets.map((bucket) => bucket.Name)
|
|
52
|
+
* }
|
|
53
|
+
*
|
|
54
|
+
* @example <caption>HTTP Request with Callback</caption>
|
|
55
|
+
* import { Handler } from 'aws-lambda'
|
|
56
|
+
* import https from 'https'
|
|
57
|
+
*
|
|
58
|
+
* let url = "https://docs.aws.amazon.com/lambda/latest/dg/welcome.html"
|
|
59
|
+
*
|
|
60
|
+
* export const handler: Handler<void, number> = (event, context, callback) => {
|
|
61
|
+
* https.get(url, (res) => {
|
|
62
|
+
* callback(null, res.statusCode)
|
|
63
|
+
* }).on('error', (e) => {
|
|
64
|
+
* callback(Error(e))
|
|
65
|
+
* })
|
|
66
|
+
* }
|
|
67
|
+
*
|
|
68
|
+
* @param event
|
|
69
|
+
* Parsed JSON data in the lambda request payload. For an AWS service triggered
|
|
70
|
+
* lambda this should be in the format of a type ending in Event, for example the
|
|
71
|
+
* S3Handler receives an event of type S3Event.
|
|
72
|
+
* @param context
|
|
73
|
+
* Runtime contextual information of the current invocation, for example the caller
|
|
74
|
+
* identity, available memory and time remaining, legacy completion callbacks, and
|
|
75
|
+
* a mutable property controlling when the lambda execution completes.
|
|
76
|
+
* @param callback
|
|
77
|
+
* NodeJS-style completion callback that the AWS Lambda runtime will provide that can
|
|
78
|
+
* be used to provide the lambda result payload value, or any execution error. Can
|
|
79
|
+
* instead return a promise that resolves with the result payload value or rejects
|
|
80
|
+
* with the execution error.
|
|
81
|
+
* @return
|
|
82
|
+
* A promise that resolves with the lambda result payload value, or rejects with the
|
|
83
|
+
* execution error. Note that if you implement your handler as an async function,
|
|
84
|
+
* you will automatically return a promise that will resolve with a returned value,
|
|
85
|
+
* or reject with a thrown value.
|
|
86
|
+
*/
|
|
87
|
+
type Handler<TEvent = any, TResult = any> = (event: TEvent, context: Context, callback: Callback<TResult>) => void | Promise<TResult> // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
88
|
+
;
|
|
89
|
+
/**
|
|
90
|
+
* {@link Handler} context parameter.
|
|
91
|
+
* See {@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html AWS documentation}.
|
|
92
|
+
*/
|
|
93
|
+
interface Context {
|
|
94
|
+
callbackWaitsForEmptyEventLoop: boolean;
|
|
95
|
+
functionName: string;
|
|
96
|
+
functionVersion: string;
|
|
97
|
+
invokedFunctionArn: string;
|
|
98
|
+
memoryLimitInMB: string;
|
|
99
|
+
awsRequestId: string;
|
|
100
|
+
logGroupName: string;
|
|
101
|
+
logStreamName: string;
|
|
102
|
+
identity?: CognitoIdentity | undefined;
|
|
103
|
+
clientContext?: ClientContext | undefined;
|
|
104
|
+
tenantId?: string | undefined;
|
|
105
|
+
getRemainingTimeInMillis(): number; // Functions for compatibility with earlier Node.js Runtime v0.10.42
|
|
106
|
+
// No longer documented, so they are deprecated, but they still work
|
|
107
|
+
// as of the 12.x runtime, so they are not removed from the types.
|
|
108
|
+
/** @deprecated Use handler callback or promise result */
|
|
109
|
+
done(error?: Error, result?: any): void;
|
|
110
|
+
/** @deprecated Use handler callback with first argument or reject a promise result */
|
|
111
|
+
fail(error: Error | string): void;
|
|
112
|
+
/** @deprecated Use handler callback with second argument or resolve a promise result */
|
|
113
|
+
succeed(messageOrObject: any): void; // Unclear what behavior this is supposed to have, I couldn't find any still extant reference,
|
|
114
|
+
// and it behaves like the above, ignoring the object parameter.
|
|
115
|
+
/** @deprecated Use handler callback or promise result */
|
|
116
|
+
succeed(message: string, object: any): void;
|
|
117
|
+
}
|
|
118
|
+
interface CognitoIdentity {
|
|
119
|
+
cognitoIdentityId: string;
|
|
120
|
+
cognitoIdentityPoolId: string;
|
|
121
|
+
}
|
|
122
|
+
interface ClientContext {
|
|
123
|
+
client: ClientContextClient;
|
|
124
|
+
custom?: any;
|
|
125
|
+
env: ClientContextEnv;
|
|
126
|
+
}
|
|
127
|
+
interface ClientContextClient {
|
|
128
|
+
installationId: string;
|
|
129
|
+
appTitle: string;
|
|
130
|
+
appVersionName: string;
|
|
131
|
+
appVersionCode: string;
|
|
132
|
+
appPackageName: string;
|
|
133
|
+
}
|
|
134
|
+
interface ClientContextEnv {
|
|
135
|
+
platformVersion: string;
|
|
136
|
+
platform: string;
|
|
137
|
+
make: string;
|
|
138
|
+
model: string;
|
|
139
|
+
locale: string;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* NodeJS-style callback parameter for the {@link Handler} type.
|
|
143
|
+
* Can be used instead of returning a promise, see the
|
|
144
|
+
* {@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html AWS documentation}
|
|
145
|
+
* for the handler programming model.
|
|
146
|
+
*
|
|
147
|
+
* @param error
|
|
148
|
+
* Parameter to use to provide the error payload for a failed lambda execution.
|
|
149
|
+
* See {@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-mode-exceptions.html AWS documentation}
|
|
150
|
+
* for error handling.
|
|
151
|
+
* If an Error instance is passed, the error payload uses the `name` property as the `errorType`,
|
|
152
|
+
* the `message` property as the `errorMessage`, and parses the `stack` property string into
|
|
153
|
+
* the `trace` array.
|
|
154
|
+
* For other values, the `errorType` is `typeof value`, the `errorMessage` is `String(value)`, and
|
|
155
|
+
* `trace` is an empty array.
|
|
156
|
+
*
|
|
157
|
+
* @param result
|
|
158
|
+
* Parameter to use to provide the result payload for a successful lambda execution.
|
|
159
|
+
* Pass `null` or `undefined` for the `error` parameter to use this parameter.
|
|
160
|
+
*/
|
|
161
|
+
type Callback<TResult = any> = (error?: Error | string | null, result?: TResult) => void;
|
|
162
|
+
/**
|
|
163
|
+
* Interface for using response streaming from AWS Lambda.
|
|
164
|
+
* To indicate to the runtime that Lambda should stream your function’s responses, you must wrap your function handler with the `awslambda.streamifyResponse()` decorator.
|
|
165
|
+
*
|
|
166
|
+
* The `streamifyResponse` decorator accepts the following additional parameter, `responseStream`, besides the default node handler parameters, `event`, and `context`.
|
|
167
|
+
* The new `responseStream` object provides a stream object that your function can write data to. Data written to this stream is sent immediately to the client. You can optionally set the Content-Type header of the response to pass additional metadata to your client about the contents of the stream.
|
|
168
|
+
*
|
|
169
|
+
* {@link https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/ AWS blog post}
|
|
170
|
+
* {@link https://docs.aws.amazon.com/lambda/latest/dg/config-rs-write-functions.html AWS documentation}
|
|
171
|
+
*
|
|
172
|
+
* @example <caption>Writing to the response stream</caption>
|
|
173
|
+
* import 'aws-lambda';
|
|
174
|
+
*
|
|
175
|
+
* export const handler = awslambda.streamifyResponse(
|
|
176
|
+
* async (event, responseStream, context) => {
|
|
177
|
+
* responseStream.setContentType("text/plain");
|
|
178
|
+
* responseStream.write("Hello, world!");
|
|
179
|
+
* responseStream.end();
|
|
180
|
+
* }
|
|
181
|
+
* );
|
|
182
|
+
*
|
|
183
|
+
* @example <caption>Using pipeline</caption>
|
|
184
|
+
* import 'aws-lambda';
|
|
185
|
+
* import { Readable } from 'stream';
|
|
186
|
+
* import { pipeline } from 'stream/promises';
|
|
187
|
+
* import zlib from 'zlib';
|
|
188
|
+
*
|
|
189
|
+
* export const handler = awslambda.streamifyResponse(
|
|
190
|
+
* async (event, responseStream, context) => {
|
|
191
|
+
* // As an example, convert event to a readable stream.
|
|
192
|
+
* const requestStream = Readable.from(Buffer.from(JSON.stringify(event)));
|
|
193
|
+
*
|
|
194
|
+
* await pipeline(requestStream, zlib.createGzip(), responseStream);
|
|
195
|
+
* }
|
|
196
|
+
* );
|
|
197
|
+
*/
|
|
198
|
+
type StreamifyHandler<TEvent = any, TResult = any> = (event: TEvent, responseStream: awslambda.HttpResponseStream, context: Context) => TResult | Promise<TResult>;
|
|
199
|
+
declare global {
|
|
200
|
+
namespace awslambda {
|
|
201
|
+
class HttpResponseStream extends Writable {
|
|
202
|
+
static from(writable: Writable, metadata: Record<string, unknown>): HttpResponseStream;
|
|
203
|
+
setContentType: (contentType: string) => void;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Decorator for using response streaming from AWS Lambda.
|
|
207
|
+
* To indicate to the runtime that Lambda should stream your function’s responses, you must wrap your function handler with the `awslambda.streamifyResponse()` decorator.
|
|
208
|
+
*
|
|
209
|
+
* The `streamifyResponse` decorator accepts the following additional parameter, `responseStream`, besides the default node handler parameters, `event`, and `context`.
|
|
210
|
+
* The new `responseStream` object provides a stream object that your function can write data to. Data written to this stream is sent immediately to the client. You can optionally set the Content-Type header of the response to pass additional metadata to your client about the contents of the stream.
|
|
211
|
+
*
|
|
212
|
+
* {@link https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/ AWS blog post}
|
|
213
|
+
* {@link https://docs.aws.amazon.com/lambda/latest/dg/config-rs-write-functions.html AWS documentation}
|
|
214
|
+
*
|
|
215
|
+
* @example <caption>Writing to the response stream</caption>
|
|
216
|
+
* import 'aws-lambda';
|
|
217
|
+
*
|
|
218
|
+
* export const handler = awslambda.streamifyResponse(
|
|
219
|
+
* async (event, responseStream, context) => {
|
|
220
|
+
* responseStream.setContentType("text/plain");
|
|
221
|
+
* responseStream.write("Hello, world!");
|
|
222
|
+
* responseStream.end();
|
|
223
|
+
* }
|
|
224
|
+
* );
|
|
225
|
+
*
|
|
226
|
+
* @example <caption>Using pipeline</caption>
|
|
227
|
+
* import 'aws-lambda';
|
|
228
|
+
* import { Readable } from 'stream';
|
|
229
|
+
* import { pipeline } from 'stream/promises';
|
|
230
|
+
* import zlib from 'zlib';
|
|
231
|
+
*
|
|
232
|
+
* export const handler = awslambda.streamifyResponse(
|
|
233
|
+
* async (event, responseStream, context) => {
|
|
234
|
+
* // As an example, convert event to a readable stream.
|
|
235
|
+
* const requestStream = Readable.from(Buffer.from(JSON.stringify(event)));
|
|
236
|
+
*
|
|
237
|
+
* await pipeline(requestStream, zlib.createGzip(), responseStream);
|
|
238
|
+
* }
|
|
239
|
+
* );
|
|
240
|
+
*/
|
|
241
|
+
function streamifyResponse<TEvent = any, TResult = void>(handler: StreamifyHandler<TEvent, TResult>): StreamifyHandler<TEvent, TResult>;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
//#endregion
|
|
245
|
+
export { Callback, ClientContext, ClientContextClient, ClientContextEnv, CognitoIdentity, Context, Handler, StreamifyHandler };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Works with Lambda Proxy Integration for Rest API or HTTP API integration Payload Format version 1.0
|
|
4
|
+
* @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
|
|
5
|
+
*/
|
|
6
|
+
interface APIGatewayProxyResult {
|
|
7
|
+
statusCode: number;
|
|
8
|
+
headers?: {
|
|
9
|
+
[header: string]: boolean | number | string;
|
|
10
|
+
} | undefined;
|
|
11
|
+
multiValueHeaders?: {
|
|
12
|
+
[header: string]: Array<boolean | number | string>;
|
|
13
|
+
} | undefined;
|
|
14
|
+
body: string;
|
|
15
|
+
isBase64Encoded?: boolean | undefined;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { APIGatewayProxyResult };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|