@batijs/cli 0.0.458 → 0.0.460

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 (76) hide show
  1. package/dist/boilerplates/@batijs/auth0/files/$.env.js +5 -5
  2. package/dist/boilerplates/@batijs/auth0/files/$README.md.js +3 -3
  3. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +4 -4
  4. package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
  5. package/dist/boilerplates/@batijs/aws/files/$package.json.js +6 -6
  6. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
  7. package/dist/boilerplates/@batijs/biome/files/$package.json.js +3 -3
  8. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +5 -5
  9. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
  10. package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +5 -5
  11. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +3 -3
  12. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
  13. package/dist/boilerplates/@batijs/d1/files/$README.md.js +3 -3
  14. package/dist/boilerplates/@batijs/d1/files/$package.json.js +6 -6
  15. package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
  16. package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
  17. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +5 -5
  18. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
  19. package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +3 -3
  20. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +4 -4
  21. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +6 -6
  22. package/dist/boilerplates/@batijs/express/files/$package.json.js +5 -5
  23. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +5 -5
  24. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  25. package/dist/boilerplates/@batijs/h3/files/$package.json.js +5 -5
  26. package/dist/boilerplates/@batijs/hono/files/$package.json.js +7 -7
  27. package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
  28. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
  29. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +5 -5
  30. package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +3 -3
  31. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
  32. package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
  33. package/dist/boilerplates/@batijs/prisma/files/$README.md.js +3 -3
  34. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +3 -3
  35. package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
  36. package/dist/boilerplates/@batijs/react/files/$package.json.js +4 -4
  37. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
  38. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
  39. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +4 -4
  40. package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
  41. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -3
  42. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +4 -4
  43. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  44. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +7 -7
  45. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
  46. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +5 -5
  47. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
  48. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
  49. package/dist/boilerplates/@batijs/shared/files/$README.md.js +9 -9
  50. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +5 -5
  51. package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
  52. package/dist/boilerplates/@batijs/solid/files/$package.json.js +3 -3
  53. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
  54. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
  55. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +4 -4
  56. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
  57. package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +3 -3
  58. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +4 -4
  59. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +4 -4
  60. package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
  61. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +5 -5
  62. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
  63. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +5 -5
  64. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +5 -5
  65. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +3 -3
  66. package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +3 -3
  67. package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
  68. package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +3 -3
  69. package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
  70. package/dist/boilerplates/@batijs/vue/files/$package.json.js +7 -7
  71. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
  72. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
  73. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +5 -5
  74. package/dist/{chunk-H5S7CYMG.js → chunk-5X7FUZDU.js} +70875 -70837
  75. package/dist/index.js +28 -26
  76. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -3,13 +3,13 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- A$r,
7
- B5e,
8
- Dit,
9
- GZi,
6
+ Ait,
7
+ P$r,
8
+ ees,
10
9
  export_which,
11
- ops
12
- } from "./chunk-H5S7CYMG.js";
10
+ fps,
11
+ j5e
12
+ } from "./chunk-5X7FUZDU.js";
13
13
  import "./chunk-IAWYWZSL.js";
14
14
  import {
15
15
  __commonJS,
@@ -13277,7 +13277,7 @@ ${theme.style.description(selectedChoice.description)}` : ``;
13277
13277
  ];
13278
13278
  });
13279
13279
 
13280
- // ../../node_modules/.pnpm/@inquirer+select@4.3.0_@types+node@20.19.0/node_modules/@inquirer/select/dist/esm/index.js
13280
+ // ../../node_modules/.pnpm/@inquirer+select@4.3.1_@types+node@20.19.0/node_modules/@inquirer/select/dist/esm/index.js
13281
13281
  var import_yoctocolors_cjs7 = __toESM(require_yoctocolors_cjs(), 1);
13282
13282
  var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
13283
13283
  var selectTheme = {
@@ -13403,14 +13403,16 @@ ${theme.style.help(`(${config.instructions?.pager ?? "Use arrow keys to reveal m
13403
13403
  helpTipTop = theme.style.help(`(${config.instructions?.navigation ?? "Use arrow keys"})`);
13404
13404
  }
13405
13405
  }
13406
+ let separatorCount = 0;
13406
13407
  const page = usePagination({
13407
13408
  items,
13408
13409
  active,
13409
13410
  renderItem({ item, isActive, index }) {
13410
13411
  if (Separator.isSeparator(item)) {
13412
+ separatorCount++;
13411
13413
  return ` ${item.separator}`;
13412
13414
  }
13413
- const indexLabel = theme.indexMode === "number" ? `${index + 1}. ` : "";
13415
+ const indexLabel = theme.indexMode === "number" ? `${index + 1 - separatorCount}. ` : "";
13414
13416
  if (item.disabled) {
13415
13417
  const disabledLabel = typeof item.disabled === "string" ? item.disabled : "(disabled)";
13416
13418
  return theme.style.disabled(`${indexLabel}${item.name} ${disabledLabel}`);
@@ -13445,8 +13447,8 @@ async function mergeDts({
13445
13447
  filepath,
13446
13448
  meta
13447
13449
  }) {
13448
- const previousAst = B5e(previousContent);
13449
- const currentAst = B5e(fileContent);
13450
+ const previousAst = j5e(previousContent);
13451
+ const currentAst = j5e(fileContent);
13450
13452
  for (const imp of previousAst.imports.$items) {
13451
13453
  currentAst.imports[imp.local] = imp;
13452
13454
  }
@@ -13463,7 +13465,7 @@ async function mergeDts({
13463
13465
  currentAst.$ast.body.splice(index, 0, node);
13464
13466
  }
13465
13467
  }
13466
- const res = await GZi(currentAst.generate().code, meta, {
13468
+ const res = await ees(currentAst.generate().code, meta, {
13467
13469
  filepath
13468
13470
  });
13469
13471
  return clearExports(res.code, meta);
@@ -13484,7 +13486,7 @@ async function executeOperationFile(op, {
13484
13486
  }) {
13485
13487
  const code = await readFile(op.sourceAbsolute, { encoding: "utf-8" });
13486
13488
  const filepath = relative(op.source, op.sourceAbsolute);
13487
- const result = await GZi(code, meta, {
13489
+ const result = await ees(code, meta, {
13488
13490
  filepath
13489
13491
  });
13490
13492
  let fileContent = result.code;
@@ -13522,7 +13524,7 @@ async function transformFileAfterExec(filepath, fileContent) {
13522
13524
  case ".js":
13523
13525
  case ".tsx":
13524
13526
  case ".jsx":
13525
- return Dit(fileContent, {
13527
+ return Ait(fileContent, {
13526
13528
  filepath
13527
13529
  });
13528
13530
  case ".env":
@@ -16445,15 +16447,15 @@ var createQueryOperation = function(query, owneryQuery, _a) {
16445
16447
  operations: Object.assign({}, operations || {})
16446
16448
  };
16447
16449
  var _c = createQueryOperations(query, null, options), selfOperations = _c[0], nestedOperations = _c[1];
16448
- var ops2 = [];
16450
+ var ops = [];
16449
16451
  if (selfOperations.length) {
16450
- ops2.push(new NestedOperation([], query, owneryQuery, options, selfOperations));
16452
+ ops.push(new NestedOperation([], query, owneryQuery, options, selfOperations));
16451
16453
  }
16452
- ops2.push.apply(ops2, nestedOperations);
16453
- if (ops2.length === 1) {
16454
- return ops2[0];
16454
+ ops.push.apply(ops, nestedOperations);
16455
+ if (ops.length === 1) {
16456
+ return ops[0];
16455
16457
  }
16456
- return new QueryOperation(query, owneryQuery, options, ops2);
16458
+ return new QueryOperation(query, owneryQuery, options, ops);
16457
16459
  };
16458
16460
  var createQueryOperations = function(query, parentKey, options) {
16459
16461
  var selfOperations = [];
@@ -16934,7 +16936,7 @@ var createDefaultQueryTester = function(query, options) {
16934
16936
  // package.json
16935
16937
  var package_default = {
16936
16938
  name: "@batijs/cli",
16937
- version: "0.0.458",
16939
+ version: "0.0.460",
16938
16940
  type: "module",
16939
16941
  scripts: {
16940
16942
  "check-types": "tsc --noEmit",
@@ -16949,7 +16951,7 @@ var package_default = {
16949
16951
  devDependencies: {
16950
16952
  "@batijs/build": "workspace:*",
16951
16953
  "@batijs/compile": "workspace:*",
16952
- "@inquirer/prompts": "^7.7.0",
16954
+ "@inquirer/prompts": "^7.7.1",
16953
16955
  "@types/node": "^20.19.0",
16954
16956
  "@types/which": "^3.0.4",
16955
16957
  citty: "^0.1.6",
@@ -17028,7 +17030,7 @@ Choose Hono or remove selected Server`
17028
17030
  var __filename = fileURLToPath(import.meta.url);
17029
17031
  var __dirname = dirname(__filename);
17030
17032
  var isWin2 = process.platform === "win32";
17031
- var pm = ops();
17033
+ var pm = fps();
17032
17034
  function boilerplatesDir() {
17033
17035
  if (existsSync2(join(__dirname, "boilerplates", "boilerplates.json"))) {
17034
17036
  return join(__dirname, "boilerplates");
@@ -17062,10 +17064,10 @@ function findDescription(key) {
17062
17064
  }
17063
17065
  }
17064
17066
  function printOK(dist, flags2) {
17065
- const arrow0 = A$r("\u2192", blueBright);
17066
- const book0 = A$r("\u{1F4DA}", blueBright);
17067
- const list3 = A$r("-", void 0, 3);
17068
- const cmd3 = A$r("$", gray, 3);
17067
+ const arrow0 = P$r("\u2192", blueBright);
17068
+ const book0 = P$r("\u{1F4DA}", blueBright);
17069
+ const list3 = P$r("-", void 0, 3);
17070
+ const cmd3 = P$r("$", gray, 3);
17069
17071
  console.log(bold(`${green("\u2713")} Project created at ${cyan(dist)} with:`));
17070
17072
  console.log(list3(green("Vike")));
17071
17073
  for (const key of flags2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.458",
3
+ "version": "0.0.460",
4
4
  "type": "module",
5
5
  "keywords": [],
6
6
  "description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
@@ -8,7 +8,7 @@
8
8
  "repository": "https://github.com/vikejs/bati",
9
9
  "license": "MIT",
10
10
  "devDependencies": {
11
- "@inquirer/prompts": "^7.7.0",
11
+ "@inquirer/prompts": "^7.7.1",
12
12
  "@types/node": "^20.19.0",
13
13
  "@types/which": "^3.0.4",
14
14
  "citty": "^0.1.6",
@@ -20,12 +20,12 @@
20
20
  "typescript": "^5.8.3",
21
21
  "unplugin-purge-polyfills": "^0.1.0",
22
22
  "vite": "^6.3.5",
23
- "@batijs/build": "0.0.458",
24
- "@batijs/compile": "0.0.458"
23
+ "@batijs/build": "0.0.460",
24
+ "@batijs/compile": "0.0.460"
25
25
  },
26
26
  "dependencies": {
27
- "@batijs/core": "0.0.458",
28
- "@batijs/features": "0.0.458"
27
+ "@batijs/core": "0.0.460",
28
+ "@batijs/features": "0.0.460"
29
29
  },
30
30
  "bin": "./cli.js",
31
31
  "exports": {