create-better-t-stack 3.2.22 → 3.2.23

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/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as createBtsCli } from "./src-WIwtBCHf.js";
2
+ import { n as createBtsCli } from "./src-Cx7HDf0b.js";
3
3
 
4
4
  //#region src/cli.ts
5
5
  createBtsCli().run();
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-WIwtBCHf.js";
2
+ import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-Cx7HDf0b.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -2076,12 +2076,12 @@ async function setupFumadocs(config) {
2076
2076
  const fumadocsInitCommand = getPackageExecutionCommand(packageManager, `create-fumadocs-app@latest fumadocs --template ${TEMPLATES[template].value} --src --pm ${packageManager} --no-git`);
2077
2077
  const appsDir = path.join(projectDir, "apps");
2078
2078
  await fs.ensureDir(appsDir);
2079
- log.info("Running Fumadocs create command...");
2079
+ const s = spinner();
2080
+ s.start("Running Fumadocs create command...");
2080
2081
  await execa(fumadocsInitCommand, {
2081
2082
  cwd: appsDir,
2082
2083
  env: { CI: "true" },
2083
- shell: true,
2084
- stdio: "inherit"
2084
+ shell: true
2085
2085
  });
2086
2086
  const fumadocsDir = path.join(projectDir, "apps", "fumadocs");
2087
2087
  const packageJsonPath = path.join(fumadocsDir, "package.json");
@@ -2091,7 +2091,7 @@ async function setupFumadocs(config) {
2091
2091
  if (packageJson.scripts?.dev) packageJson.scripts.dev = `${packageJson.scripts.dev} --port=4000`;
2092
2092
  await fs.writeJson(packageJsonPath, packageJson, { spaces: 2 });
2093
2093
  }
2094
- log.success("Fumadocs setup complete!");
2094
+ s.stop("Fumadocs setup complete!");
2095
2095
  } catch (error) {
2096
2096
  log.error(pc.red("Failed to set up Fumadocs"));
2097
2097
  if (error instanceof Error) consola.error(pc.red(error.message));
@@ -2295,6 +2295,10 @@ const AGENTS = {
2295
2295
  goose: { label: "Goose" },
2296
2296
  "roo-code": { label: "Roo Code" }
2297
2297
  };
2298
+ const HOOKS = {
2299
+ cursor: { label: "Cursor" },
2300
+ claude: { label: "Claude" }
2301
+ };
2298
2302
  function getFrameworksFromFrontend(frontend) {
2299
2303
  const frameworkMap = {
2300
2304
  "tanstack-router": "react",
@@ -2332,12 +2336,20 @@ async function setupUltracite(config, hasHusky) {
2332
2336
  label: agent.label
2333
2337
  })),
2334
2338
  required: true
2339
+ }),
2340
+ hooks: () => autocompleteMultiselect({
2341
+ message: "Choose hooks",
2342
+ options: Object.entries(HOOKS).map(([key, hook]) => ({
2343
+ value: key,
2344
+ label: hook.label
2345
+ }))
2335
2346
  })
2336
2347
  }, { onCancel: () => {
2337
2348
  exitCancelled("Operation cancelled");
2338
2349
  } });
2339
2350
  const editors = result.editors;
2340
2351
  const agents = result.agents;
2352
+ const hooks = result.hooks;
2341
2353
  const frameworks = getFrameworksFromFrontend(frontend);
2342
2354
  const ultraciteArgs = [
2343
2355
  "init",
@@ -2347,21 +2359,21 @@ async function setupUltracite(config, hasHusky) {
2347
2359
  if (frameworks.length > 0) ultraciteArgs.push("--frameworks", ...frameworks);
2348
2360
  if (editors.length > 0) ultraciteArgs.push("--editors", ...editors);
2349
2361
  if (agents.length > 0) ultraciteArgs.push("--agents", ...agents);
2362
+ if (hooks.length > 0) ultraciteArgs.push("--hooks", ...hooks);
2350
2363
  if (hasHusky) ultraciteArgs.push("--integrations", "husky", "lint-staged");
2351
2364
  const ultraciteInitCommand = getPackageExecutionCommand(packageManager, `ultracite@latest ${ultraciteArgs.join(" ")} --skip-install`);
2352
- log.info("Running Ultracite init command...");
2365
+ const s = spinner();
2366
+ s.start("Running Ultracite init command...");
2353
2367
  await execa(ultraciteInitCommand, {
2354
2368
  cwd: projectDir,
2355
2369
  env: { CI: "true" },
2356
- shell: true,
2357
- stdio: "inherit"
2370
+ shell: true
2358
2371
  });
2359
- log.success("Ultracite setup complete!");
2360
2372
  if (hasHusky) await addPackageDependency({
2361
2373
  devDependencies: ["husky", "lint-staged"],
2362
2374
  projectDir
2363
2375
  });
2364
- log.success("Ultracite setup successfully!");
2376
+ s.stop("Ultracite setup successfully!");
2365
2377
  } catch (error) {
2366
2378
  log.error(pc.red("Failed to set up Ultracite"));
2367
2379
  if (error instanceof Error) console.error(pc.red(error.message));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "3.2.22",
3
+ "version": "3.2.23",
4
4
  "description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
5
5
  "type": "module",
6
6
  "license": "MIT",