@batijs/cli 0.0.542 → 0.0.544

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.
Files changed (115) hide show
  1. package/dist/boilerplates/@batijs/auth0/files/$.env.js +5 -5
  2. package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +3 -3
  3. package/dist/boilerplates/@batijs/auth0/files/$wrangler.jsonc.js +3 -3
  4. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +3 -3
  5. package/dist/boilerplates/@batijs/aws/files/$README.md.js +5 -5
  6. package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +5 -5
  7. package/dist/boilerplates/@batijs/aws/files/$package.json.js +6 -6
  8. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
  9. package/dist/boilerplates/@batijs/aws/files/cdk/bin/infrastructure.ts +1 -1
  10. package/dist/boilerplates/@batijs/biome/files/$package.json.js +3 -3
  11. package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +5 -5
  12. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +5 -5
  13. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
  14. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +4 -4
  15. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
  16. package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +5 -5
  17. package/dist/boilerplates/@batijs/d1/files/$package.json.js +4 -4
  18. package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +3 -3
  19. package/dist/boilerplates/@batijs/d1-kysely/bati.config.js +17 -0
  20. package/dist/boilerplates/@batijs/d1-kysely/files/$package.json.js +77 -0
  21. package/dist/boilerplates/@batijs/d1-kysely/files/database/migrations/todos.sql +4 -0
  22. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +3 -3
  23. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
  24. package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +5 -5
  25. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +5 -5
  26. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +4 -4
  27. package/dist/boilerplates/@batijs/express/files/$package.json.js +7 -7
  28. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +6 -6
  29. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  30. package/dist/boilerplates/@batijs/h3/files/$package.json.js +7 -7
  31. package/dist/boilerplates/@batijs/hono/files/$package.json.js +6 -6
  32. package/dist/boilerplates/@batijs/kysely/bati.config.js +35 -0
  33. package/dist/boilerplates/@batijs/kysely/files/$.env.js +19 -0
  34. package/dist/boilerplates/@batijs/kysely/files/$TODO.md.js +30 -0
  35. package/dist/boilerplates/@batijs/kysely/files/$package.json.js +120 -0
  36. package/dist/boilerplates/@batijs/kysely/files/database/kysely/db.ts +25 -0
  37. package/dist/boilerplates/@batijs/kysely/files/database/kysely/migrate.ts +45 -0
  38. package/dist/boilerplates/@batijs/kysely/files/database/kysely/migrations/001_create_todos_table.ts +16 -0
  39. package/dist/boilerplates/@batijs/kysely/files/database/kysely/queries/todos.ts +20 -0
  40. package/dist/boilerplates/@batijs/kysely/files/database/kysely/types.ts +13 -0
  41. package/dist/boilerplates/@batijs/kysely/types/database/kysely/db.d.ts +5 -0
  42. package/dist/boilerplates/@batijs/kysely/types/database/kysely/migrate.d.ts +1 -0
  43. package/dist/boilerplates/@batijs/kysely/types/database/kysely/migrations/001_create_todos_table.d.ts +4 -0
  44. package/dist/boilerplates/@batijs/kysely/types/database/kysely/queries/todos.d.ts +15 -0
  45. package/dist/boilerplates/@batijs/kysely/types/database/kysely/types.d.ts +10 -0
  46. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
  47. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +6 -6
  48. package/dist/boilerplates/@batijs/oxlint/files/$package.json.js +5 -5
  49. package/dist/boilerplates/@batijs/photon/files/$README.md.js +3 -3
  50. package/dist/boilerplates/@batijs/photon/files/$package.json.js +4 -4
  51. package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +3 -3
  52. package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +3 -3
  53. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +4 -4
  54. package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
  55. package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +5 -5
  56. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +5 -5
  57. package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
  58. package/dist/boilerplates/@batijs/react/files/$package.json.js +8 -8
  59. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
  60. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
  61. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +7 -7
  62. package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
  63. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +5 -5
  64. package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +3 -3
  65. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +4 -4
  66. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  67. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +9 -9
  68. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +5 -5
  69. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +4 -4
  70. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
  71. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
  72. package/dist/boilerplates/@batijs/shared/files/$README.md.js +7 -7
  73. package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +3 -3
  74. package/dist/boilerplates/@batijs/shared/files/package.json +1 -1
  75. package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +10 -3
  76. package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.ts +3 -0
  77. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +4 -4
  78. package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +6 -0
  79. package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +7 -0
  80. package/dist/boilerplates/@batijs/shared-todo/files/global.d.ts +3 -0
  81. package/dist/boilerplates/@batijs/shared-todo/files/pages/todo/+data.ts +5 -0
  82. package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
  83. package/dist/boilerplates/@batijs/solid/files/$package.json.js +5 -5
  84. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
  85. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
  86. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +5 -5
  87. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
  88. package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +5 -5
  89. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +3 -3
  90. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +5 -5
  91. package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
  92. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +4 -4
  93. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
  94. package/dist/boilerplates/@batijs/telefunc/files/global.d.ts +3 -0
  95. package/dist/boilerplates/@batijs/telefunc/files/pages/todo/TodoList.telefunc.ts +4 -0
  96. package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +3 -0
  97. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +4 -4
  98. package/dist/boilerplates/@batijs/trpc/files/trpc/server.ts +6 -0
  99. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +7 -3
  100. package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.ts +13 -0
  101. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +3 -3
  102. package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +6 -0
  103. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +5 -5
  104. package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +3 -3
  105. package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
  106. package/dist/boilerplates/@batijs/vue/files/$package.json.js +5 -5
  107. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
  108. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +5 -5
  109. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +5 -5
  110. package/dist/boilerplates/boilerplates.json +12 -0
  111. package/dist/{chunk-X4G6MHMH.js → chunk-CIBJZ5MN.js} +75803 -75758
  112. package/dist/index.js +87 -67
  113. package/dist/{jiti-ZW3ADF2F-2SLKRUEN.js → jiti-PKZMRTZN-BIHN3GUM.js} +2 -3
  114. package/dist/{prompt-YBELZKBA.js → prompt-424IOCOV.js} +2 -2
  115. package/package.json +8 -8
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- r9s
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ mjs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -15,9 +15,9 @@ async function getEnv(props) {
15
15
  const auth0ClientSecret = process.env.TEST_AUTH0_CLIENT_SECRET;
16
16
  const auth0BaseUrl = process.env.TEST_AUTH0_ISSUER_BASE_URL;
17
17
  let envContent = await props.readfile?.();
18
- envContent = r9s(envContent, "AUTH0_CLIENT_ID", auth0ClientId ?? "", "Auth0 Client ID");
19
- envContent = r9s(envContent, "AUTH0_CLIENT_SECRET", auth0ClientSecret ?? "", "Auth0 Client Secret");
20
- envContent = r9s(envContent, "AUTH0_ISSUER_BASE_URL", auth0BaseUrl ?? "", "Auth0 base URL");
18
+ envContent = mjs(envContent, "AUTH0_CLIENT_ID", auth0ClientId ?? "", "Auth0 Client ID");
19
+ envContent = mjs(envContent, "AUTH0_CLIENT_SECRET", auth0ClientSecret ?? "", "Auth0 Client Secret");
20
+ envContent = mjs(envContent, "AUTH0_ISSUER_BASE_URL", auth0BaseUrl ?? "", "Auth0 base URL");
21
21
  return envContent;
22
22
  }
23
23
  export {
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- gSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ PEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/auth0/dist/files/$TODO.md.js
12
12
  async function getTodo(props) {
13
- const content = await gSs(props);
13
+ const content = await PEs(props);
14
14
  const todo = `
15
15
  ## Auth0
16
16
 
@@ -3,15 +3,15 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- ySs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ kEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/auth0/dist/files/$wrangler.jsonc.js
12
12
  async function getEnv(props) {
13
13
  if (!props.meta.BATI.has("cloudflare")) return;
14
- const wrangler = await ySs(props);
14
+ const wrangler = await kEs(props);
15
15
  const auth0ClientId = process.env.TEST_AUTH0_CLIENT_ID;
16
16
  const auth0ClientSecret = process.env.TEST_AUTH0_CLIENT_SECRET;
17
17
  const auth0BaseUrl = process.env.TEST_AUTH0_ISSUER_BASE_URL;
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -77,7 +77,7 @@ var require_package = __commonJS({
77
77
  }
78
78
  });
79
79
  async function getPackageJson(props) {
80
- const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
80
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
81
81
  return packageJson.addDependencies(["@auth/core", "@universal-middleware/core"]);
82
82
  }
83
83
  export {
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Nus,
7
- gSs
8
- } from "../../../../chunk-X4G6MHMH.js";
6
+ PEs,
7
+ Yps
8
+ } from "../../../../chunk-CIBJZ5MN.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/aws/dist/files/$README.md.js
13
13
  async function getReadme(props) {
14
- const content = await gSs(props);
15
- const pmCmd = Nus().run;
14
+ const content = await PEs(props);
15
+ const pmCmd = Yps().run;
16
16
  const about = `
17
17
  ## AWS CDK Deployment
18
18
 
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Nus,
7
- gSs
8
- } from "../../../../chunk-X4G6MHMH.js";
6
+ PEs,
7
+ Yps
8
+ } from "../../../../chunk-CIBJZ5MN.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/aws/dist/files/$TODO.md.js
13
13
  async function getTodo(props) {
14
- const content = await gSs(props);
15
- const pmCmd = Nus().run;
14
+ const content = await PEs(props);
15
+ const pmCmd = Yps().run;
16
16
  const todo = `
17
17
  ## AWS CDK Deployment
18
18
 
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -54,15 +54,15 @@ var require_package = __commonJS({
54
54
  "@types/node": "^20.19.25",
55
55
  "@types/which": "^3.0.4",
56
56
  "aws-cdk": "^2.1033.0",
57
- "aws-cdk-lib": "^2.230.0",
57
+ "aws-cdk-lib": "^2.232.1",
58
58
  cdk: "^2.1033.0",
59
59
  constructs: "^10.4.3",
60
- esbuild: "^0.27.0",
60
+ esbuild: "^0.27.1",
61
61
  "npm-run-all2": "^8.0.4",
62
62
  "source-map-support": "^0.5.21",
63
63
  tsx: "^4.21.0",
64
64
  typescript: "^5.9.3",
65
- vitest: "^4.0.14",
65
+ vitest: "^4.0.15",
66
66
  which: "^6.0.0"
67
67
  },
68
68
  dependencies: {
@@ -105,7 +105,7 @@ var require_package = __commonJS({
105
105
  }
106
106
  });
107
107
  async function getPackageJson(props) {
108
- const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
108
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
109
109
  return packageJson.setScript("test", {
110
110
  value: "vitest",
111
111
  precedence: 0
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- ySs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ kEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/aws/dist/files/$tsconfig.json.js
12
12
  async function getTsConfig(props) {
13
- const tsConfig = await ySs(props);
13
+ const tsConfig = await kEs(props);
14
14
  tsConfig.compilerOptions.types = [
15
15
  ...tsConfig.compilerOptions.types ?? [],
16
16
  "@types/node",
@@ -80,5 +80,5 @@ function loadCertificate(stack: cdk.Stack, stackConfig: CustomStackProps): certi
80
80
  domainName: siteDomainName,
81
81
  //subjectAlternativeNames: props.domainAliases,
82
82
  validation: certificatemanager.CertificateValidation.fromDns(hostedZone),
83
- });
83
+ }) as certificatemanager.ICertificate;
84
84
  }
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -65,7 +65,7 @@ var require_package = __commonJS({
65
65
  }
66
66
  });
67
67
  async function getPackageJson(props) {
68
- const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
68
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
69
69
  return packageJson.setScript("lint", {
70
70
  value: "biome lint --write .",
71
71
  precedence: 0
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Nus,
7
- gSs
8
- } from "../../../../chunk-X4G6MHMH.js";
6
+ PEs,
7
+ Yps
8
+ } from "../../../../chunk-CIBJZ5MN.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/cloudflare/dist/files/$TODO.md.js
13
13
  async function getTodo(props) {
14
- const content = await gSs(props);
15
- const pmExec = Nus().exec;
14
+ const content = await PEs(props);
15
+ const pmExec = Yps().exec;
16
16
  const todo = `
17
17
  ## Cloudflare Workers
18
18
 
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -51,9 +51,9 @@ var require_package = __commonJS({
51
51
  license: "MIT",
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
- "@photonjs/cloudflare": "^0.1.9",
54
+ "@photonjs/cloudflare": "^0.1.11",
55
55
  "@types/node": "^20.19.25",
56
- wrangler: "^4.51.0"
56
+ wrangler: "^4.53.0"
57
57
  },
58
58
  dependencies: {
59
59
  "@batijs/core": "workspace:*"
@@ -77,7 +77,7 @@ var require_package = __commonJS({
77
77
  }
78
78
  });
79
79
  async function getPackageJson(props) {
80
- const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
80
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
81
81
  return packageJson.removeScript("prod").setScript("deploy", {
82
82
  value: "vike build && wrangler deploy",
83
83
  precedence: 25,
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- ySs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ kEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/cloudflare/dist/files/$tsconfig.json.js
12
12
  async function getTsConfig(props) {
13
- const tsConfig = await ySs(props);
13
+ const tsConfig = await kEs(props);
14
14
  tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "./worker-configuration.d.ts"];
15
15
  return tsConfig;
16
16
  }
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -52,7 +52,7 @@ var require_package = __commonJS({
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
54
  "@types/node": "^20.19.25",
55
- vite: "^7.2.6",
55
+ vite: "^7.2.7",
56
56
  "vite-plugin-compiled-react": "^1.3.1"
57
57
  },
58
58
  dependencies: {
@@ -66,7 +66,7 @@ var require_package = __commonJS({
66
66
  }
67
67
  });
68
68
  async function getPackageJson(props) {
69
- const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
69
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
70
70
  return packageJson.addDevDependencies(["vite-plugin-compiled-react"]).addDependencies(["@compiled/react"]);
71
71
  }
72
72
  export {
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- TSs,
7
- pri
8
- } from "../../../../chunk-X4G6MHMH.js";
6
+ IEs,
7
+ gni
8
+ } from "../../../../chunk-CIBJZ5MN.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/compiled/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
14
- const mod = await TSs(props);
15
- pri(mod, {
14
+ const mod = await IEs(props);
15
+ gni(mod, {
16
16
  from: "vite-plugin-compiled-react",
17
17
  constructor: "compiled",
18
18
  imported: "compiled",
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Nus,
7
- gSs
8
- } from "../../../../chunk-X4G6MHMH.js";
6
+ PEs,
7
+ Yps
8
+ } from "../../../../chunk-CIBJZ5MN.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/d1/dist/files/$TODO.md.js
13
13
  async function getTodo(props) {
14
- const content = await gSs(props);
15
- const pmCmd = Nus().run;
14
+ const content = await PEs(props);
15
+ const pmCmd = Yps().run;
16
16
  const todo = `
17
17
  ## Cloudflare D1
18
18
 
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -54,7 +54,7 @@ var require_package = __commonJS({
54
54
  "@types/node": "^20.19.25",
55
55
  "@universal-middleware/core": "^0.4.13",
56
56
  vike: "^0.4.247",
57
- wrangler: "^4.51.0"
57
+ wrangler: "^4.53.0"
58
58
  },
59
59
  dependencies: {
60
60
  "@batijs/core": "workspace:*"
@@ -78,7 +78,7 @@ var require_package = __commonJS({
78
78
  }
79
79
  });
80
80
  async function getPackageJson(props) {
81
- const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
81
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
82
82
  return packageJson.addDevDependencies(["@universal-middleware/core"]);
83
83
  }
84
84
  export {
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- ySs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ kEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/d1/dist/files/$wrangler.jsonc.js
12
12
  async function getToml(props) {
13
- const wrangler = await ySs(props);
13
+ const wrangler = await kEs(props);
14
14
  wrangler.d1_databases ??= [];
15
15
  wrangler.d1_databases.push({
16
16
  binding: "DB",
@@ -0,0 +1,17 @@
1
+ // ../../packages/core/dist/config.js
2
+ function t(e, n) {
3
+ if (!e) throw new Error(n);
4
+ }
5
+ function p(e) {
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), "knip" in e && (t(typeof e.knip == "object" && e.knip !== null, "'knip' must be an object"), "entry" in e.knip && t(Array.isArray(e.knip.entry), "'knip.entry' must be an array"), "ignoreDependencies" in e.knip && t(Array.isArray(e.knip.ignoreDependencies), "'knip.ignoreDependencies' must be an array"), "ignore" in e.knip && t(Array.isArray(e.knip.ignore), "'knip.ignore' must be an array"), "vite" in e.knip && t(typeof e.knip.vite == "boolean", "'knip.vite' must be a boolean")), e;
7
+ }
8
+
9
+ // bati.config.ts
10
+ var bati_config_default = p({
11
+ if(meta) {
12
+ return meta.BATI.hasD1 && meta.BATI.has("kysely");
13
+ }
14
+ });
15
+ export {
16
+ bati_config_default as default
17
+ };
@@ -0,0 +1,77 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as createRequire_BATI_CLI } from 'module';
3
+ const require = createRequire_BATI_CLI(import.meta.url);
4
+
5
+ import {
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
+ import "../../../../chunk-IAWYWZSL.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
+
11
+ // ../../boilerplates/d1-kysely/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/d1-kysely",
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
+ "@batijs/compile": "workspace:*",
54
+ "@types/node": "^20.19.25"
55
+ },
56
+ dependencies: {
57
+ "@batijs/core": "workspace:*"
58
+ },
59
+ files: [
60
+ "dist/"
61
+ ]
62
+ };
63
+ }
64
+ });
65
+ async function getPackageJson(props) {
66
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
67
+ return packageJson.setScript("d1:migrate", {
68
+ value: "wrangler d1 migrations apply MY_VIKE_DEMO_DATABASE --local",
69
+ precedence: 0
70
+ }).setScript("d1:deploy", {
71
+ value: "wrangler d1 migrations apply MY_VIKE_DEMO_DATABASE --remote",
72
+ precedence: 0
73
+ });
74
+ }
75
+ export {
76
+ getPackageJson as default
77
+ };
@@ -0,0 +1,4 @@
1
+ CREATE TABLE IF NOT EXISTS todos (
2
+ id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
3
+ text TEXT NOT NULL
4
+ );
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -77,7 +77,7 @@ var require_package = __commonJS({
77
77
  }
78
78
  });
79
79
  async function getPackageJson(props) {
80
- const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
80
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
81
81
  return packageJson.setScript("d1:migrate", {
82
82
  value: "wrangler d1 migrations apply MY_VIKE_DEMO_DATABASE --local",
83
83
  precedence: 0
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- r9s
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ mjs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -12,7 +12,7 @@ import "../../../../chunk-IHX3I5SM.js";
12
12
  async function getEnv(props) {
13
13
  if (props.meta.BATI.hasD1) return;
14
14
  const envContent = await props.readfile?.();
15
- return r9s(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
15
+ return mjs(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
16
16
  }
17
17
  export {
18
18
  getEnv as default
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Nus,
7
- gSs
8
- } from "../../../../chunk-X4G6MHMH.js";
6
+ PEs,
7
+ Yps
8
+ } from "../../../../chunk-CIBJZ5MN.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/drizzle/dist/files/$TODO.md.js
13
13
  async function getTodo(props) {
14
- const content = await gSs(props);
15
- const pmCmd = Nus().run;
14
+ const content = await PEs(props);
15
+ const pmCmd = Yps().run;
16
16
  const todo = `
17
17
  ## Drizzle
18
18
 
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -55,8 +55,8 @@ var require_package = __commonJS({
55
55
  "@types/node": "^20.19.25",
56
56
  "better-sqlite3": "^12.5.0",
57
57
  dotenv: "^17.2.3",
58
- "drizzle-kit": "^0.31.7",
59
- "drizzle-orm": "^0.44.7"
58
+ "drizzle-kit": "^0.31.8",
59
+ "drizzle-orm": "^0.45.0"
60
60
  },
61
61
  dependencies: {
62
62
  "@batijs/core": "workspace:*"
@@ -98,7 +98,7 @@ var require_package = __commonJS({
98
98
  }
99
99
  });
100
100
  async function getPackageJson(props) {
101
- const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
101
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
102
102
  return packageJson.setScript("drizzle:generate", {
103
103
  value: "drizzle-kit generate",
104
104
  precedence: 20
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -59,7 +59,7 @@ var require_package = __commonJS({
59
59
  "eslint-plugin-solid": "^0.14.5",
60
60
  "eslint-plugin-vue": "^10.6.2",
61
61
  globals: "^16.5.0",
62
- "typescript-eslint": "^8.48.0",
62
+ "typescript-eslint": "^8.48.1",
63
63
  "vue-eslint-parser": "^10.2.0"
64
64
  },
65
65
  dependencies: {
@@ -84,7 +84,7 @@ var require_package = __commonJS({
84
84
  }
85
85
  });
86
86
  async function getPackageJson(props) {
87
- const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
87
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
88
88
  return packageJson.setScript("lint", {
89
89
  value: "eslint .",
90
90
  precedence: 0