create-better-t-stack 2.33.7 → 2.33.9

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-v-T6MhJ_.js";
2
+ import { createBtsCli } from "./src-BSUXyw1T.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-v-T6MhJ_.js";
2
+ import { builder, createBtsCli, docs, init, router, sponsors } from "./src-BSUXyw1T.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -2346,7 +2346,7 @@ async function setupUltracite(config, hasHusky) {
2346
2346
  ];
2347
2347
  if (editors.length > 0) ultraciteArgs.push("--editors", ...editors);
2348
2348
  if (rules.length > 0) ultraciteArgs.push("--rules", ...rules);
2349
- if (hasHusky) ultraciteArgs.push("--features", "husky", "lint-staged");
2349
+ if (hasHusky) ultraciteArgs.push("--integrations", "husky", "lint-staged");
2350
2350
  const ultraciteArgsString = ultraciteArgs.join(" ");
2351
2351
  const commandWithArgs = `ultracite@latest ${ultraciteArgsString} --skip-install`;
2352
2352
  const ultraciteInitCommand = getPackageExecutionCommand(packageManager, commandWithArgs);
@@ -2965,11 +2965,7 @@ async function setupApi(config) {
2965
2965
  if (webDirExists) {
2966
2966
  if (hasReactWeb) {
2967
2967
  if (api === "orpc") await addPackageDependency({
2968
- dependencies: [
2969
- "@orpc/tanstack-query",
2970
- "@orpc/client",
2971
- "@orpc/server"
2972
- ],
2968
+ dependencies: ["@orpc/tanstack-query", "@orpc/client"],
2973
2969
  projectDir: webDir
2974
2970
  });
2975
2971
  else if (api === "trpc") await addPackageDependency({
@@ -2986,8 +2982,7 @@ async function setupApi(config) {
2986
2982
  "@tanstack/vue-query",
2987
2983
  "@tanstack/vue-query-devtools",
2988
2984
  "@orpc/tanstack-query",
2989
- "@orpc/client",
2990
- "@orpc/server"
2985
+ "@orpc/client"
2991
2986
  ],
2992
2987
  projectDir: webDir
2993
2988
  });
@@ -2996,7 +2991,6 @@ async function setupApi(config) {
2996
2991
  dependencies: [
2997
2992
  "@orpc/tanstack-query",
2998
2993
  "@orpc/client",
2999
- "@orpc/server",
3000
2994
  "@tanstack/svelte-query"
3001
2995
  ],
3002
2996
  projectDir: webDir
@@ -3006,7 +3000,6 @@ async function setupApi(config) {
3006
3000
  dependencies: [
3007
3001
  "@orpc/tanstack-query",
3008
3002
  "@orpc/client",
3009
- "@orpc/server",
3010
3003
  "@tanstack/solid-query"
3011
3004
  ],
3012
3005
  projectDir: webDir
@@ -3023,11 +3016,7 @@ async function setupApi(config) {
3023
3016
  projectDir: nativeDir
3024
3017
  });
3025
3018
  else if (api === "orpc") await addPackageDependency({
3026
- dependencies: [
3027
- "@orpc/tanstack-query",
3028
- "@orpc/client",
3029
- "@orpc/server"
3030
- ],
3019
+ dependencies: ["@orpc/tanstack-query", "@orpc/client"],
3031
3020
  projectDir: nativeDir
3032
3021
  });
3033
3022
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "2.33.7",
3
+ "version": "2.33.9",
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,9 +1,8 @@
1
1
  import { createORPCClient } from "@orpc/client";
2
2
  import { RPCLink } from "@orpc/client/fetch";
3
3
  import { createTanstackQueryUtils } from "@orpc/tanstack-query";
4
- import type { RouterClient } from "@orpc/server";
5
4
  import { QueryCache, QueryClient } from "@tanstack/react-query";
6
- import type { appRouter } from "../../server/src/routers";
5
+ import type { AppRouterClient } from "../../server/src/routers";
7
6
  {{#if auth}}
8
7
  import { authClient } from "@/lib/auth-client";
9
8
  {{/if}}
@@ -30,6 +29,6 @@ export const link = new RPCLink({
30
29
  {{/if}}
31
30
  });
32
31
 
33
- export const client: RouterClient<typeof appRouter> = createORPCClient(link);
32
+ export const client: AppRouterClient = createORPCClient(link);
34
33
 
35
34
  export const orpc = createTanstackQueryUtils(client);
@@ -1,6 +1,5 @@
1
1
  import { defineNuxtPlugin, useRuntimeConfig } from '#app'
2
- import type { RouterClient } from '@orpc/server'
3
- import type { appRouter } from "../../../server/src/routers/index";
2
+ import type { AppRouterClient } from "../../../server/src/routers/index";
4
3
  import { createORPCClient } from '@orpc/client'
5
4
  import { RPCLink } from '@orpc/client/fetch'
6
5
  import { createTanstackQueryUtils } from "@orpc/tanstack-query";
@@ -24,7 +23,7 @@ export default defineNuxtPlugin(() => {
24
23
  })
25
24
 
26
25
 
27
- const client: RouterClient<typeof appRouter> = createORPCClient(rpcLink)
26
+ const client: AppRouterClient = createORPCClient(rpcLink)
28
27
  const orpcUtils = createTanstackQueryUtils(client)
29
28
 
30
29
  return {
@@ -3,8 +3,7 @@ import { RPCLink } from "@orpc/client/fetch";
3
3
  import { createTanstackQueryUtils } from "@orpc/tanstack-query";
4
4
  import { QueryCache, QueryClient } from "@tanstack/react-query";
5
5
  import { toast } from "sonner";
6
- import type { appRouter } from "../../../server/src/routers/index";
7
- import type { RouterClient } from "@orpc/server";
6
+ import type { AppRouterClient } from "../../../server/src/routers/index";
8
7
 
9
8
  export const queryClient = new QueryClient({
10
9
  queryCache: new QueryCache({
@@ -37,6 +36,6 @@ export const link = new RPCLink({
37
36
  {{/if}}
38
37
  });
39
38
 
40
- export const client: RouterClient<typeof appRouter> = createORPCClient(link)
39
+ export const client: AppRouterClient = createORPCClient(link)
41
40
 
42
41
  export const orpc = createTanstackQueryUtils(client)
@@ -2,8 +2,7 @@ import { createORPCClient } from "@orpc/client";
2
2
  import { RPCLink } from "@orpc/client/fetch";
3
3
  import { createTanstackQueryUtils } from "@orpc/tanstack-query";
4
4
  import { QueryCache, QueryClient } from "@tanstack/solid-query";
5
- import type { appRouter } from "../../../server/src/routers/index";
6
- import type { RouterClient } from "@orpc/server";
5
+ import type { AppRouterClient } from "../../../server/src/routers/index";
7
6
 
8
7
  export const queryClient = new QueryClient({
9
8
  queryCache: new QueryCache({
@@ -25,6 +24,6 @@ export const link = new RPCLink({
25
24
  {{/if}}
26
25
  });
27
26
 
28
- export const client: RouterClient<typeof appRouter> = createORPCClient(link);
27
+ export const client: AppRouterClient = createORPCClient(link);
29
28
 
30
29
  export const orpc = createTanstackQueryUtils(client);
@@ -1,10 +1,9 @@
1
1
  import { PUBLIC_SERVER_URL } from "$env/static/public";
2
2
  import { createORPCClient } from "@orpc/client";
3
3
  import { RPCLink } from "@orpc/client/fetch";
4
- import type { RouterClient } from "@orpc/server";
5
4
  import { createTanstackQueryUtils } from "@orpc/tanstack-query";
6
5
  import { QueryCache, QueryClient } from "@tanstack/svelte-query";
7
- import type { appRouter } from "../../../server/src/routers/index";
6
+ import type { AppRouterClient } from "../../../server/src/routers/index";
8
7
 
9
8
  export const queryClient = new QueryClient({
10
9
  queryCache: new QueryCache({
@@ -26,6 +25,6 @@ export const link = new RPCLink({
26
25
  {{/if}}
27
26
  });
28
27
 
29
- export const client: RouterClient<typeof appRouter> = createORPCClient(link);
28
+ export const client: AppRouterClient = createORPCClient(link);
30
29
 
31
30
  export const orpc = createTanstackQueryUtils(client);
@@ -1,5 +1,6 @@
1
1
  {{#if (eq api "orpc")}}
2
2
  import { {{#if auth}}protectedProcedure, {{/if}}publicProcedure } from "../lib/orpc";
3
+ import type { RouterClient } from "@orpc/server";
3
4
  {{#if (includes examples "todo")}}
4
5
  import { todoRouter } from "./todo";
5
6
  {{/if}}
@@ -21,6 +22,7 @@ export const appRouter = {
21
22
  {{/if}}
22
23
  };
23
24
  export type AppRouter = typeof appRouter;
25
+ export type AppRouterClient = RouterClient<typeof appRouter>;
24
26
  {{else if (eq api "trpc")}}
25
27
  import {
26
28
  {{#if auth}}protectedProcedure, {{/if}}publicProcedure,
@@ -7,9 +7,8 @@ import { link, orpc } from "@/utils/orpc";
7
7
  import type { QueryClient } from "@tanstack/react-query";
8
8
  import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
9
9
  import { useState } from "react";
10
- import type { RouterClient } from "@orpc/server";
11
10
  import { createTanstackQueryUtils } from "@orpc/tanstack-query";
12
- import type { appRouter } from "../../../server/src/routers";
11
+ import type { AppRouterClient } from "../../../server/src/routers";
13
12
  import { createORPCClient } from "@orpc/client";
14
13
  {{/if}}
15
14
  {{#if (eq api "trpc")}}
@@ -67,7 +66,7 @@ function RootComponent() {
67
66
  });
68
67
 
69
68
  {{#if (eq api "orpc")}}
70
- const [client] = useState<RouterClient<typeof appRouter>>(() => createORPCClient(link));
69
+ const [client] = useState<AppRouterClient>(() => createORPCClient(link));
71
70
  const [orpcUtils] = useState(() => createTanstackQueryUtils(client));
72
71
  {{/if}}
73
72