create-better-t-stack 3.0.12-canary.67e2a033 → 3.0.12-canary.b6015ca7

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 { createBtsCli } from "./src-Defz5E7A.js";
2
+ import { createBtsCli } from "./src-DnZjYQ_z.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 { builder, createBtsCli, docs, init, router, sponsors } from "./src-Defz5E7A.js";
2
+ import { builder, createBtsCli, docs, init, router, sponsors } from "./src-DnZjYQ_z.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -6627,28 +6627,34 @@ async function setupWorkspaceDependencies(projectDir, options) {
6627
6627
  projectDir: dbPackageDir
6628
6628
  });
6629
6629
  const authPackageDir = path.join(projectDir, "packages/auth");
6630
- if (await fs.pathExists(authPackageDir)) await addPackageDependency({
6631
- dependencies: commonDeps,
6632
- devDependencies: commonDevDeps,
6633
- customDependencies: { [`@${projectName}/db`]: workspaceVersion },
6634
- projectDir: authPackageDir
6635
- });
6630
+ if (await fs.pathExists(authPackageDir)) {
6631
+ const authDeps = {};
6632
+ if (options.database !== "none" && await fs.pathExists(dbPackageDir)) authDeps[`@${projectName}/db`] = workspaceVersion;
6633
+ await addPackageDependency({
6634
+ dependencies: commonDeps,
6635
+ devDependencies: commonDevDeps,
6636
+ customDependencies: authDeps,
6637
+ projectDir: authPackageDir
6638
+ });
6639
+ }
6636
6640
  const apiPackageDir = path.join(projectDir, "packages/api");
6637
- if (await fs.pathExists(apiPackageDir)) await addPackageDependency({
6638
- dependencies: commonDeps,
6639
- devDependencies: commonDevDeps,
6640
- customDependencies: {
6641
- [`@${projectName}/auth`]: workspaceVersion,
6642
- [`@${projectName}/db`]: workspaceVersion
6643
- },
6644
- projectDir: apiPackageDir
6645
- });
6641
+ if (await fs.pathExists(apiPackageDir)) {
6642
+ const apiDeps = {};
6643
+ if (options.auth !== "none" && await fs.pathExists(authPackageDir)) apiDeps[`@${projectName}/auth`] = workspaceVersion;
6644
+ if (options.database !== "none" && await fs.pathExists(dbPackageDir)) apiDeps[`@${projectName}/db`] = workspaceVersion;
6645
+ await addPackageDependency({
6646
+ dependencies: commonDeps,
6647
+ devDependencies: commonDevDeps,
6648
+ customDependencies: apiDeps,
6649
+ projectDir: apiPackageDir
6650
+ });
6651
+ }
6646
6652
  const serverPackageDir = path.join(projectDir, "apps/server");
6647
6653
  if (await fs.pathExists(serverPackageDir)) {
6648
6654
  const serverDeps = {};
6649
- if (await fs.pathExists(apiPackageDir)) serverDeps[`@${projectName}/api`] = workspaceVersion;
6650
- if (await fs.pathExists(authPackageDir)) serverDeps[`@${projectName}/auth`] = workspaceVersion;
6651
- if (await fs.pathExists(dbPackageDir)) serverDeps[`@${projectName}/db`] = workspaceVersion;
6655
+ if (options.api !== "none" && await fs.pathExists(apiPackageDir)) serverDeps[`@${projectName}/api`] = workspaceVersion;
6656
+ if (options.auth !== "none" && await fs.pathExists(authPackageDir)) serverDeps[`@${projectName}/auth`] = workspaceVersion;
6657
+ if (options.database !== "none" && await fs.pathExists(dbPackageDir)) serverDeps[`@${projectName}/db`] = workspaceVersion;
6652
6658
  await addPackageDependency({
6653
6659
  dependencies: commonDeps,
6654
6660
  devDependencies: commonDevDeps,
@@ -6659,8 +6665,8 @@ async function setupWorkspaceDependencies(projectDir, options) {
6659
6665
  const webPackageDir = path.join(projectDir, "apps/web");
6660
6666
  if (await fs.pathExists(webPackageDir)) {
6661
6667
  const webDeps = {};
6662
- if (await fs.pathExists(apiPackageDir)) webDeps[`@${projectName}/api`] = workspaceVersion;
6663
- if (await fs.pathExists(authPackageDir)) webDeps[`@${projectName}/auth`] = workspaceVersion;
6668
+ if (options.api !== "none" && await fs.pathExists(apiPackageDir)) webDeps[`@${projectName}/api`] = workspaceVersion;
6669
+ if (options.auth !== "none" && await fs.pathExists(authPackageDir)) webDeps[`@${projectName}/auth`] = workspaceVersion;
6664
6670
  if (Object.keys(webDeps).length > 0) await addPackageDependency({
6665
6671
  customDependencies: webDeps,
6666
6672
  projectDir: webPackageDir
@@ -6669,7 +6675,7 @@ async function setupWorkspaceDependencies(projectDir, options) {
6669
6675
  const nativePackageDir = path.join(projectDir, "apps/native");
6670
6676
  if (await fs.pathExists(nativePackageDir)) {
6671
6677
  const nativeDeps = {};
6672
- if (await fs.pathExists(apiPackageDir)) nativeDeps[`@${projectName}/api`] = workspaceVersion;
6678
+ if (options.api !== "none" && await fs.pathExists(apiPackageDir)) nativeDeps[`@${projectName}/api`] = workspaceVersion;
6673
6679
  if (Object.keys(nativeDeps).length > 0) await addPackageDependency({
6674
6680
  customDependencies: nativeDeps,
6675
6681
  projectDir: nativePackageDir
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "3.0.12-canary.67e2a033",
3
+ "version": "3.0.12-canary.b6015ca7",
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",