create-better-t-stack 3.2.17 → 3.2.19

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-DZl9QEGL.js";
2
+ import { n as createBtsCli } from "./src-BjWlXInp.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-DZl9QEGL.js";
2
+ import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-BjWlXInp.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -2070,7 +2070,7 @@ async function setupFumadocs(config) {
2070
2070
  initialValue: "next-mdx"
2071
2071
  });
2072
2072
  if (isCancel(template)) return exitCancelled("Operation cancelled");
2073
- const fumadocsInitCommand = getPackageExecutionCommand(packageManager, `create-fumadocs-app@16.0.4 fumadocs --template ${TEMPLATES[template].value} --src --pm ${packageManager} --no-git`);
2073
+ const fumadocsInitCommand = getPackageExecutionCommand(packageManager, `create-fumadocs-app@latest fumadocs --template ${TEMPLATES[template].value} --src --pm ${packageManager} --no-git`);
2074
2074
  const appsDir = path.join(projectDir, "apps");
2075
2075
  await fs.ensureDir(appsDir);
2076
2076
  const s = spinner();
@@ -4017,6 +4017,8 @@ async function setupCatalogs(projectDir, options) {
4017
4017
  const packagePaths = [
4018
4018
  "apps/server",
4019
4019
  "apps/web",
4020
+ "apps/fumadocs",
4021
+ "apps/docs",
4020
4022
  "packages/api",
4021
4023
  "packages/db",
4022
4024
  "packages/auth",
@@ -5172,18 +5174,18 @@ async function writeEnvFile$2(projectDir, backend, config) {
5172
5174
  async function setupWithNeonDb(projectDir, packageManager, backend) {
5173
5175
  try {
5174
5176
  const s = spinner();
5175
- s.start("Creating Neon database using neondb...");
5177
+ s.start("Creating Neon database using get-db...");
5176
5178
  const targetApp = backend === "self" ? "apps/web" : "apps/server";
5177
5179
  const targetDir = path.join(projectDir, targetApp);
5178
5180
  await fs.ensureDir(targetDir);
5179
- await execa(getPackageExecutionCommand(packageManager, "neondb@latest --yes"), {
5181
+ await execa(getPackageExecutionCommand(packageManager, "get-db@latest --yes"), {
5180
5182
  shell: true,
5181
5183
  cwd: targetDir
5182
5184
  });
5183
5185
  s.stop(pc.green("Neon database created successfully!"));
5184
5186
  return true;
5185
5187
  } catch (error) {
5186
- consola$1.error(pc.red("Failed to create database with neondb"));
5188
+ consola$1.error(pc.red("Failed to create database with get-db"));
5187
5189
  throw error;
5188
5190
  }
5189
5191
  }
@@ -5228,7 +5230,7 @@ async function setupNeonPostgres(config, cliInput) {
5228
5230
  const setupMethod = await select({
5229
5231
  message: "Choose your Neon setup method:",
5230
5232
  options: [{
5231
- label: "Quick setup with neondb",
5233
+ label: "Quick setup with get-db",
5232
5234
  value: "neondb",
5233
5235
  hint: "fastest, no auth required"
5234
5236
  }, {
@@ -6994,9 +6996,9 @@ async function createProject(options, cliInput) {
6994
6996
  await handleExtras(projectDir, options);
6995
6997
  await setupEnvironmentVariables(options);
6996
6998
  await updatePackageConfigurations(projectDir, options);
6997
- await setupCatalogs(projectDir, options);
6998
6999
  await setupWebDeploy(options);
6999
7000
  await setupServerDeploy(options);
7001
+ await setupCatalogs(projectDir, options);
7000
7002
  await createReadme(projectDir, options);
7001
7003
  await writeBtsConfig(options);
7002
7004
  log.success("Project template successfully scaffolded!");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "3.2.17",
3
+ "version": "3.2.19",
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",