create-better-t-stack 3.1.1 → 3.1.3

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-D0KtbO1R.js";
2
+ import { createBtsCli } from "./src-D7wibHPZ.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-D0KtbO1R.js";
2
+ import { builder, createBtsCli, docs, init, router, sponsors } from "./src-D7wibHPZ.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -4184,7 +4184,7 @@ function getFrontendType(frontend) {
4184
4184
  hasNative: frontend.some((f) => nativeFrontends.includes(f))
4185
4185
  };
4186
4186
  }
4187
- function getApiDependencies(api, frontendType) {
4187
+ function getApiDependencies(api, frontendType, backend) {
4188
4188
  const deps = {};
4189
4189
  if (api === "orpc") deps.server = { dependencies: [
4190
4190
  "@orpc/server",
@@ -4193,6 +4193,11 @@ function getApiDependencies(api, frontendType) {
4193
4193
  "@orpc/zod"
4194
4194
  ] };
4195
4195
  else if (api === "trpc") deps.server = { dependencies: ["@trpc/server", "@trpc/client"] };
4196
+ if (backend !== "self" && backend !== "convex" && backend !== "none") {
4197
+ if (!deps.server) deps.server = { dependencies: [] };
4198
+ if (backend === "hono") deps.server.dependencies.push("hono");
4199
+ else if (backend === "elysia") deps.server.dependencies.push("elysia");
4200
+ }
4196
4201
  if (frontendType.hasReactWeb) {
4197
4202
  if (api === "orpc") deps.web = { dependencies: [
4198
4203
  "@orpc/tanstack-query",
@@ -4285,7 +4290,7 @@ async function setupApi(config) {
4285
4290
  await fs.pathExists(serverDir);
4286
4291
  const frontendType = getFrontendType(frontend);
4287
4292
  if (!isConvex && api !== "none") {
4288
- const apiDeps = getApiDependencies(api, frontendType);
4293
+ const apiDeps = getApiDependencies(api, frontendType, backend);
4289
4294
  const apiPackageDir = path.join(projectDir, "packages/api");
4290
4295
  if (apiDeps.server) {
4291
4296
  await addPackageDependency({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
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",
@@ -1,6 +1,6 @@
1
1
  [install]
2
2
  {{#if (or (includes frontend "nuxt") (includes frontend "native-nativewind") (includes frontend "native-unistyles"))}}
3
- # linker = "isolated" # having issues with Nuxt and NativeWind/Unistyles
3
+ linker = "hoisted" # having issues with Nuxt and NativeWind/Unistyles when linker is isolated
4
4
  {{else}}
5
5
  linker = "isolated"
6
6
  {{/if}}