@better-t-stack/template-generator 3.27.0 → 3.27.1
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/index.d.mts +27 -27
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +145 -144
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -87,7 +87,7 @@ declare const dependencyVersionMap: {
|
|
|
87
87
|
readonly "@clerk/nextjs": "^7.0.5";
|
|
88
88
|
readonly "@clerk/react": "^6.1.1";
|
|
89
89
|
readonly "@clerk/react-router": "^3.0.5";
|
|
90
|
-
readonly "@clerk/tanstack-react-start": "^1.
|
|
90
|
+
readonly "@clerk/tanstack-react-start": "^1.1.3";
|
|
91
91
|
readonly "@clerk/expo": "^3.1.3";
|
|
92
92
|
readonly "drizzle-orm": "^0.45.1";
|
|
93
93
|
readonly "drizzle-kit": "^0.31.8";
|
|
@@ -100,18 +100,18 @@ declare const dependencyVersionMap: {
|
|
|
100
100
|
readonly "@types/ws": "^8.18.1";
|
|
101
101
|
readonly ws: "^8.18.3";
|
|
102
102
|
readonly mysql2: "^3.14.0";
|
|
103
|
-
readonly "@prisma/client": "^7.
|
|
104
|
-
readonly prisma: "^7.
|
|
105
|
-
readonly "@prisma/adapter-d1": "^7.
|
|
106
|
-
readonly "@prisma/adapter-neon": "^7.
|
|
107
|
-
readonly "@prisma/adapter-mariadb": "^7.
|
|
108
|
-
readonly "@prisma/adapter-libsql": "^7.
|
|
109
|
-
readonly "@prisma/adapter-better-sqlite3": "^7.
|
|
110
|
-
readonly "@prisma/adapter-pg": "^7.
|
|
111
|
-
readonly "@prisma/adapter-planetscale": "^7.
|
|
103
|
+
readonly "@prisma/client": "^7.7.0";
|
|
104
|
+
readonly prisma: "^7.7.0";
|
|
105
|
+
readonly "@prisma/adapter-d1": "^7.7.0";
|
|
106
|
+
readonly "@prisma/adapter-neon": "^7.7.0";
|
|
107
|
+
readonly "@prisma/adapter-mariadb": "^7.7.0";
|
|
108
|
+
readonly "@prisma/adapter-libsql": "^7.7.0";
|
|
109
|
+
readonly "@prisma/adapter-better-sqlite3": "^7.7.0";
|
|
110
|
+
readonly "@prisma/adapter-pg": "^7.7.0";
|
|
111
|
+
readonly "@prisma/adapter-planetscale": "^7.7.0";
|
|
112
112
|
readonly mongoose: "^8.14.0";
|
|
113
|
-
readonly "vite-plugin-pwa": "^1.0
|
|
114
|
-
readonly "@vite-pwa/assets-generator": "^1.0.
|
|
113
|
+
readonly "vite-plugin-pwa": "^1.2.0";
|
|
114
|
+
readonly "@vite-pwa/assets-generator": "^1.0.2";
|
|
115
115
|
readonly "@tauri-apps/cli": "^2.4.0";
|
|
116
116
|
readonly "@biomejs/biome": "^2.2.0";
|
|
117
117
|
readonly oxlint: "^1.41.0";
|
|
@@ -145,14 +145,14 @@ declare const dependencyVersionMap: {
|
|
|
145
145
|
readonly "@ai-sdk/devtools": "^0.0.2";
|
|
146
146
|
readonly streamdown: "^1.6.10";
|
|
147
147
|
readonly shiki: "^3.20.0";
|
|
148
|
-
readonly "@orpc/server": "^1.
|
|
149
|
-
readonly "@orpc/client": "^1.
|
|
150
|
-
readonly "@orpc/openapi": "^1.
|
|
151
|
-
readonly "@orpc/zod": "^1.
|
|
152
|
-
readonly "@orpc/tanstack-query": "^1.13.
|
|
153
|
-
readonly "@trpc/tanstack-react-query": "^11.
|
|
154
|
-
readonly "@trpc/server": "^11.
|
|
155
|
-
readonly "@trpc/client": "^11.
|
|
148
|
+
readonly "@orpc/server": "^1.13.14";
|
|
149
|
+
readonly "@orpc/client": "^1.13.14";
|
|
150
|
+
readonly "@orpc/openapi": "^1.13.14";
|
|
151
|
+
readonly "@orpc/zod": "^1.13.14";
|
|
152
|
+
readonly "@orpc/tanstack-query": "^1.13.14";
|
|
153
|
+
readonly "@trpc/tanstack-react-query": "^11.16.0";
|
|
154
|
+
readonly "@trpc/server": "^11.16.0";
|
|
155
|
+
readonly "@trpc/client": "^11.16.0";
|
|
156
156
|
readonly next: "^16.2.0";
|
|
157
157
|
readonly convex: "^1.33.1";
|
|
158
158
|
readonly "@convex-dev/react-query": "^0.1.0";
|
|
@@ -160,7 +160,7 @@ declare const dependencyVersionMap: {
|
|
|
160
160
|
readonly "convex-svelte": "^0.0.12";
|
|
161
161
|
readonly "convex-nuxt": "0.1.5";
|
|
162
162
|
readonly "convex-vue": "^0.1.5";
|
|
163
|
-
readonly "@convex-dev/better-auth": "^0.11.
|
|
163
|
+
readonly "@convex-dev/better-auth": "^0.11.4";
|
|
164
164
|
readonly "@tanstack/svelte-query": "^5.85.3";
|
|
165
165
|
readonly "@tanstack/svelte-query-devtools": "^5.85.3";
|
|
166
166
|
readonly "@tanstack/vue-query-devtools": "^6.1.5";
|
|
@@ -168,21 +168,21 @@ declare const dependencyVersionMap: {
|
|
|
168
168
|
readonly "@tanstack/react-query-devtools": "^5.91.1";
|
|
169
169
|
readonly "@tanstack/react-query": "^5.90.12";
|
|
170
170
|
readonly "@tanstack/react-form": "^1.28.0";
|
|
171
|
-
readonly "@tanstack/react-router-ssr-query": "^1.
|
|
171
|
+
readonly "@tanstack/react-router-ssr-query": "^1.166.11";
|
|
172
172
|
readonly "@tanstack/solid-form": "^1.28.0";
|
|
173
173
|
readonly "@tanstack/svelte-form": "^1.28.0";
|
|
174
|
-
readonly "@tanstack/solid-query": "^5.
|
|
175
|
-
readonly "@tanstack/solid-query-devtools": "^5.
|
|
176
|
-
readonly "@tanstack/solid-router-devtools": "^1.
|
|
174
|
+
readonly "@tanstack/solid-query": "^5.99.1";
|
|
175
|
+
readonly "@tanstack/solid-query-devtools": "^5.99.1";
|
|
176
|
+
readonly "@tanstack/solid-router-devtools": "^1.166.13";
|
|
177
177
|
readonly wrangler: "^4.77.0";
|
|
178
178
|
readonly "@cloudflare/vite-plugin": "^1.17.1";
|
|
179
179
|
readonly "@opennextjs/cloudflare": "^1.17.3";
|
|
180
180
|
readonly "nitro-cloudflare-dev": "^0.2.2";
|
|
181
|
-
readonly "@sveltejs/adapter-cloudflare": "^7.2.
|
|
181
|
+
readonly "@sveltejs/adapter-cloudflare": "^7.2.8";
|
|
182
182
|
readonly "@cloudflare/workers-types": "^4.20251213.0";
|
|
183
183
|
readonly "@astrojs/cloudflare": "^13.0.1";
|
|
184
184
|
readonly "@astrojs/node": "^10.0.0-beta.9";
|
|
185
|
-
readonly alchemy: "^0.
|
|
185
|
+
readonly alchemy: "^0.91.2";
|
|
186
186
|
readonly dotenv: "^17.2.2";
|
|
187
187
|
readonly tsdown: "^0.16.5";
|
|
188
188
|
readonly zod: "^4.1.13";
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/core/virtual-fs.ts","../src/core/template-processor.ts","../src/template-handlers/utils.ts","../src/template-handlers/addons.ts","../src/generator.ts","../src/processors/addons-deps.ts","../src/bts-config.ts","../src/templates.generated.ts","../src/utils/add-deps.ts","../src/utils/reproducible-command.ts"],"sourcesContent":[],"mappings":";;;;;;;cAOa,iBAAA;;;;;;EAAA,QAAA,CAAA,QAAA,EAAA,MAAiB,CAAA,EAAA,MAAA,GAAA,SAAA;EA6Ea,MAAA,CAAA,IAAA,EAAA,MAAA,CAAA,EAAA,OAAA;EAkCX,UAAA,CAAA,QAAA,EAAA,MAAA,CAAA,EAAA,OAAA;EAAgB,eAcrC,CAAA,OAAA,EAAA,MAAA,CAAA,EAAA,OAAA;EAAA,KAGJ,CAAA,OAAA,EAAA,MAAA,CAAA,EAAA,IAAA;EAAA,UAAA,CAAA,QAAA,EAAA,MAAA,CAAA,EAAA,OAAA;;2CAnDoC;;EC1E3B,WAAA,CAAA,CAAA,EAAA,MAAA,EAAA;EAIA,iBAAY,CAAA,CAAA,EAAA,MAAA,EAAA;EAIZ,YAAA,CAAA,CAAA,EAAA,MAAiB;EAUjB,iBAAA,CAAA,CAAA,EAAkB,MAAA;6BD0FF;;eAAgB,MAAA,CAcrC;EE/HC,KAAA,CAAA,CAAA,EF+HD,MAAA,CAGJ,GElIoB;;;;ECAL,QAAA,aAAA;;;;iBFKN,qBAAA,2BAAgD;iBAIhD,YAAA;iBAIA,iBAAA;iBAUA,kBAAA,6CAGL;;;KC1BC,YAAA,GAAe;;;iBCAL,qBAAA,MACf,8BACM,sBACH,gBACP;;;;;AHFH;;;;;;;;;ACGA;AAIA;AAIgB,iBG+BM,QAAA,CH/BW,OAAA,EGgCtB,gBHhCsB,CAAA,EGiC9B,OHjC8B,CGiCtB,MHjCsB,CGiCf,eHjCe,EGiCE,cHjCF,CAAA,CAAA;;;iBIJjB,iBAAA,MAAuB,2BAA2B;;;;;;;iBCJlD,mBAAA,MACT,kCACU;;;cCTJ,oBAAoB;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/core/virtual-fs.ts","../src/core/template-processor.ts","../src/template-handlers/utils.ts","../src/template-handlers/addons.ts","../src/generator.ts","../src/processors/addons-deps.ts","../src/bts-config.ts","../src/templates.generated.ts","../src/utils/add-deps.ts","../src/utils/reproducible-command.ts"],"sourcesContent":[],"mappings":";;;;;;;cAOa,iBAAA;;;;;;EAAA,QAAA,CAAA,QAAA,EAAA,MAAiB,CAAA,EAAA,MAAA,GAAA,SAAA;EA6Ea,MAAA,CAAA,IAAA,EAAA,MAAA,CAAA,EAAA,OAAA;EAkCX,UAAA,CAAA,QAAA,EAAA,MAAA,CAAA,EAAA,OAAA;EAAgB,eAcrC,CAAA,OAAA,EAAA,MAAA,CAAA,EAAA,OAAA;EAAA,KAGJ,CAAA,OAAA,EAAA,MAAA,CAAA,EAAA,IAAA;EAAA,UAAA,CAAA,QAAA,EAAA,MAAA,CAAA,EAAA,OAAA;;2CAnDoC;;EC1E3B,WAAA,CAAA,CAAA,EAAA,MAAA,EAAA;EAIA,iBAAY,CAAA,CAAA,EAAA,MAAA,EAAA;EAIZ,YAAA,CAAA,CAAA,EAAA,MAAiB;EAUjB,iBAAA,CAAA,CAAA,EAAkB,MAAA;6BD0FF;;eAAgB,MAAA,CAcrC;EE/HC,KAAA,CAAA,CAAA,EF+HD,MAAA,CAGJ,GElIoB;;;;ECAL,QAAA,aAAA;;;;iBFKN,qBAAA,2BAAgD;iBAIhD,YAAA;iBAIA,iBAAA;iBAUA,kBAAA,6CAGL;;;KC1BC,YAAA,GAAe;;;iBCAL,qBAAA,MACf,8BACM,sBACH,gBACP;;;;;AHFH;;;;;;;;;ACGA;AAIA;AAIgB,iBG+BM,QAAA,CH/BW,OAAA,EGgCtB,gBHhCsB,CAAA,EGiC9B,OHjC8B,CGiCtB,MHjCsB,CGiCf,eHjCe,EGiCE,cHjCF,CAAA,CAAA;;;iBIJjB,iBAAA,MAAuB,2BAA2B;;;;;;;iBCJlD,mBAAA,MACT,kCACU;;;cCTJ,oBAAoB;cAk75BpB,cAAA;;;cCx65BA;;;ERNA,SAAA,mBAAiB,EAAA,OAAA;EA6Ea,SAAA,gBAAA,EAAA,QAAA;EAkCX,SAAA,gBAAA,EAAA,QAAA;EAAgB,SAcrC,gBAAA,EAAA,QAAA;EAAA,SAGJ,eAAA,EAAA,QAAA;EAAA,SAAA,cAAA,EAAA,QAAA;;;;EC7HS,SAAA,aAAA,EAAqB,SAAA;EAIrB,SAAA,aAAY,EAAA,SAAA;EAIZ,SAAA,uBAAiB,EAAA,SAAA;EAUjB,SAAA,gBAAkB,EAAA,SAGvB;;;;EC1BC,SAAA,WAAY,EAAA,SAAM;;;;ECAR,SAAA,gBAAqB,EAAA,QAAA;EACpC,SAAA,MAAA,EAAA,QAAA;EACM,SAAA,oBAAA,EAAA,QAAA;EACH,SAAA,sBAAA,EAAA,QAAA;EACP,SAAA,yBAAA,EAAA,QAAA;EAAO,SAAA,wBAAA,EAAA,QAAA;;;;ECwCY,SAAA,QAAQ,EAAA,SAAA;EACnB,SAAA,iBAAA,EAAA,QAAA;EACO,SAAA,4BAAA,EAAA,QAAA;EAAiB,SAAA,iBAAA,EAAA,QAAA;EAAxB,SAAA,gBAAA,EAAA,QAAA;EAAR,SAAA,MAAA,EAAA,SAAA;EAAO,SAAA,KAAA,EAAA,SAAA;;;;ECrCM,SAAA,GAAA,EAAA,SAAiB;;;;ECJjB,SAAA,gBAAmB,EAAA,QAC5B;;;;ECRM,SAAA,mBAg75BX,EAAA,QAh75BkC;EAk75BvB,SAAA,IAAA,EAAA,QAAc;;;;ECx65Bd,SAAA,aAAA,EAoJH,SAAA;EAEE,SAAA,OAAA,EAAA,QAAqB;;;;ECxIjB,SAAA,EAAA,EAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KDwIJ,qBAAA,gBAAqC;;;iBCxIjC,2BAAA,SAAoC"}
|
package/dist/index.mjs
CHANGED
|
@@ -713,7 +713,7 @@ const dependencyVersionMap = {
|
|
|
713
713
|
"@clerk/nextjs": "^7.0.5",
|
|
714
714
|
"@clerk/react": "^6.1.1",
|
|
715
715
|
"@clerk/react-router": "^3.0.5",
|
|
716
|
-
"@clerk/tanstack-react-start": "^1.
|
|
716
|
+
"@clerk/tanstack-react-start": "^1.1.3",
|
|
717
717
|
"@clerk/expo": "^3.1.3",
|
|
718
718
|
"drizzle-orm": "^0.45.1",
|
|
719
719
|
"drizzle-kit": "^0.31.8",
|
|
@@ -726,18 +726,18 @@ const dependencyVersionMap = {
|
|
|
726
726
|
"@types/ws": "^8.18.1",
|
|
727
727
|
ws: "^8.18.3",
|
|
728
728
|
mysql2: "^3.14.0",
|
|
729
|
-
"@prisma/client": "^7.
|
|
730
|
-
prisma: "^7.
|
|
731
|
-
"@prisma/adapter-d1": "^7.
|
|
732
|
-
"@prisma/adapter-neon": "^7.
|
|
733
|
-
"@prisma/adapter-mariadb": "^7.
|
|
734
|
-
"@prisma/adapter-libsql": "^7.
|
|
735
|
-
"@prisma/adapter-better-sqlite3": "^7.
|
|
736
|
-
"@prisma/adapter-pg": "^7.
|
|
737
|
-
"@prisma/adapter-planetscale": "^7.
|
|
729
|
+
"@prisma/client": "^7.7.0",
|
|
730
|
+
prisma: "^7.7.0",
|
|
731
|
+
"@prisma/adapter-d1": "^7.7.0",
|
|
732
|
+
"@prisma/adapter-neon": "^7.7.0",
|
|
733
|
+
"@prisma/adapter-mariadb": "^7.7.0",
|
|
734
|
+
"@prisma/adapter-libsql": "^7.7.0",
|
|
735
|
+
"@prisma/adapter-better-sqlite3": "^7.7.0",
|
|
736
|
+
"@prisma/adapter-pg": "^7.7.0",
|
|
737
|
+
"@prisma/adapter-planetscale": "^7.7.0",
|
|
738
738
|
mongoose: "^8.14.0",
|
|
739
|
-
"vite-plugin-pwa": "^1.0
|
|
740
|
-
"@vite-pwa/assets-generator": "^1.0.
|
|
739
|
+
"vite-plugin-pwa": "^1.2.0",
|
|
740
|
+
"@vite-pwa/assets-generator": "^1.0.2",
|
|
741
741
|
"@tauri-apps/cli": "^2.4.0",
|
|
742
742
|
"@biomejs/biome": "^2.2.0",
|
|
743
743
|
oxlint: "^1.41.0",
|
|
@@ -771,14 +771,14 @@ const dependencyVersionMap = {
|
|
|
771
771
|
"@ai-sdk/devtools": "^0.0.2",
|
|
772
772
|
streamdown: "^1.6.10",
|
|
773
773
|
shiki: "^3.20.0",
|
|
774
|
-
"@orpc/server": "^1.
|
|
775
|
-
"@orpc/client": "^1.
|
|
776
|
-
"@orpc/openapi": "^1.
|
|
777
|
-
"@orpc/zod": "^1.
|
|
778
|
-
"@orpc/tanstack-query": "^1.13.
|
|
779
|
-
"@trpc/tanstack-react-query": "^11.
|
|
780
|
-
"@trpc/server": "^11.
|
|
781
|
-
"@trpc/client": "^11.
|
|
774
|
+
"@orpc/server": "^1.13.14",
|
|
775
|
+
"@orpc/client": "^1.13.14",
|
|
776
|
+
"@orpc/openapi": "^1.13.14",
|
|
777
|
+
"@orpc/zod": "^1.13.14",
|
|
778
|
+
"@orpc/tanstack-query": "^1.13.14",
|
|
779
|
+
"@trpc/tanstack-react-query": "^11.16.0",
|
|
780
|
+
"@trpc/server": "^11.16.0",
|
|
781
|
+
"@trpc/client": "^11.16.0",
|
|
782
782
|
next: "^16.2.0",
|
|
783
783
|
convex: "^1.33.1",
|
|
784
784
|
"@convex-dev/react-query": "^0.1.0",
|
|
@@ -786,7 +786,7 @@ const dependencyVersionMap = {
|
|
|
786
786
|
"convex-svelte": "^0.0.12",
|
|
787
787
|
"convex-nuxt": "0.1.5",
|
|
788
788
|
"convex-vue": "^0.1.5",
|
|
789
|
-
"@convex-dev/better-auth": "^0.11.
|
|
789
|
+
"@convex-dev/better-auth": "^0.11.4",
|
|
790
790
|
"@tanstack/svelte-query": "^5.85.3",
|
|
791
791
|
"@tanstack/svelte-query-devtools": "^5.85.3",
|
|
792
792
|
"@tanstack/vue-query-devtools": "^6.1.5",
|
|
@@ -794,21 +794,21 @@ const dependencyVersionMap = {
|
|
|
794
794
|
"@tanstack/react-query-devtools": "^5.91.1",
|
|
795
795
|
"@tanstack/react-query": "^5.90.12",
|
|
796
796
|
"@tanstack/react-form": "^1.28.0",
|
|
797
|
-
"@tanstack/react-router-ssr-query": "^1.
|
|
797
|
+
"@tanstack/react-router-ssr-query": "^1.166.11",
|
|
798
798
|
"@tanstack/solid-form": "^1.28.0",
|
|
799
799
|
"@tanstack/svelte-form": "^1.28.0",
|
|
800
|
-
"@tanstack/solid-query": "^5.
|
|
801
|
-
"@tanstack/solid-query-devtools": "^5.
|
|
802
|
-
"@tanstack/solid-router-devtools": "^1.
|
|
800
|
+
"@tanstack/solid-query": "^5.99.1",
|
|
801
|
+
"@tanstack/solid-query-devtools": "^5.99.1",
|
|
802
|
+
"@tanstack/solid-router-devtools": "^1.166.13",
|
|
803
803
|
wrangler: "^4.77.0",
|
|
804
804
|
"@cloudflare/vite-plugin": "^1.17.1",
|
|
805
805
|
"@opennextjs/cloudflare": "^1.17.3",
|
|
806
806
|
"nitro-cloudflare-dev": "^0.2.2",
|
|
807
|
-
"@sveltejs/adapter-cloudflare": "^7.2.
|
|
807
|
+
"@sveltejs/adapter-cloudflare": "^7.2.8",
|
|
808
808
|
"@cloudflare/workers-types": "^4.20251213.0",
|
|
809
809
|
"@astrojs/cloudflare": "^13.0.1",
|
|
810
810
|
"@astrojs/node": "^10.0.0-beta.9",
|
|
811
|
-
alchemy: "^0.
|
|
811
|
+
alchemy: "^0.91.2",
|
|
812
812
|
dotenv: "^17.2.2",
|
|
813
813
|
tsdown: "^0.16.5",
|
|
814
814
|
zod: "^4.1.13",
|
|
@@ -1121,7 +1121,7 @@ function processApiDeps(vfs, config) {
|
|
|
1121
1121
|
addApiPackageDeps(vfs, api, backend, frontend, auth);
|
|
1122
1122
|
addServerDeps(vfs, api, backend);
|
|
1123
1123
|
addSelfBackendWebDeps(vfs, api, backend, frontendType);
|
|
1124
|
-
addWebClientDeps(vfs, api, backend, frontendType);
|
|
1124
|
+
addWebClientDeps(vfs, api, backend, frontend, frontendType);
|
|
1125
1125
|
if (frontendType.hasNative) addNativeDeps(vfs, api, backend);
|
|
1126
1126
|
addQueryDeps(vfs, frontend, backend);
|
|
1127
1127
|
}
|
|
@@ -1209,28 +1209,34 @@ function addSelfBackendWebDeps(vfs, api, backend, _frontendType) {
|
|
|
1209
1209
|
]
|
|
1210
1210
|
});
|
|
1211
1211
|
}
|
|
1212
|
-
function addWebClientDeps(vfs, api, backend, frontendType) {
|
|
1212
|
+
function addWebClientDeps(vfs, api, backend, frontend, frontendType) {
|
|
1213
1213
|
const webPath = "apps/web/package.json";
|
|
1214
1214
|
if (!vfs.exists(webPath) || backend === "convex") return;
|
|
1215
|
-
if (api === "trpc" && frontendType.hasReactWeb)
|
|
1216
|
-
|
|
1217
|
-
packagePath: webPath,
|
|
1218
|
-
dependencies: [
|
|
1215
|
+
if (api === "trpc" && frontendType.hasReactWeb) {
|
|
1216
|
+
const deps = [
|
|
1219
1217
|
"@trpc/tanstack-react-query",
|
|
1220
1218
|
"@trpc/client",
|
|
1221
1219
|
"@trpc/server"
|
|
1222
|
-
]
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1220
|
+
];
|
|
1221
|
+
if (frontend.includes("tanstack-start")) deps.push("@tanstack/react-router-ssr-query");
|
|
1222
|
+
addPackageDependency({
|
|
1223
|
+
vfs,
|
|
1224
|
+
packagePath: webPath,
|
|
1225
|
+
dependencies: deps
|
|
1226
|
+
});
|
|
1227
|
+
} else if (api === "orpc" && frontendType.hasReactWeb) {
|
|
1228
|
+
const deps = [
|
|
1228
1229
|
"@orpc/tanstack-query",
|
|
1229
1230
|
"@orpc/client",
|
|
1230
1231
|
"@orpc/server"
|
|
1231
|
-
]
|
|
1232
|
-
|
|
1233
|
-
|
|
1232
|
+
];
|
|
1233
|
+
if (frontend.includes("tanstack-start")) deps.push("@tanstack/react-router-ssr-query");
|
|
1234
|
+
addPackageDependency({
|
|
1235
|
+
vfs,
|
|
1236
|
+
packagePath: webPath,
|
|
1237
|
+
dependencies: deps
|
|
1238
|
+
});
|
|
1239
|
+
} else if (api === "orpc" && frontendType.hasNuxtWeb) addPackageDependency({
|
|
1234
1240
|
vfs,
|
|
1235
1241
|
packagePath: webPath,
|
|
1236
1242
|
dependencies: [
|
|
@@ -2062,7 +2068,7 @@ function buildConvexBackendVars(frontend, auth, examples) {
|
|
|
2062
2068
|
const hasNextJs = frontend.includes("next");
|
|
2063
2069
|
const hasNative = frontend.includes("native-bare") || frontend.includes("native-uniwind") || frontend.includes("native-unistyles");
|
|
2064
2070
|
const hasWeb = frontend.includes("react-router") || frontend.includes("tanstack-router") || frontend.includes("tanstack-start") || hasNextJs || frontend.includes("nuxt") || frontend.includes("solid") || frontend.includes("svelte") || frontend.includes("astro");
|
|
2065
|
-
const defaultSiteUrl = hasNative && !hasWeb ? "http://localhost:8081" : frontend.includes("react-router") || frontend.includes("
|
|
2071
|
+
const defaultSiteUrl = hasNative && !hasWeb ? "http://localhost:8081" : frontend.includes("react-router") || frontend.includes("svelte") ? "http://localhost:5173" : frontend.includes("astro") ? "http://localhost:4321" : "http://localhost:3001";
|
|
2066
2072
|
const vars = [];
|
|
2067
2073
|
if (examples?.includes("ai")) vars.push({
|
|
2068
2074
|
key: "GOOGLE_GENERATIVE_AI_API_KEY",
|
|
@@ -2100,7 +2106,7 @@ function buildConvexBackendVars(frontend, auth, examples) {
|
|
|
2100
2106
|
function buildConvexCommentBlocks(frontend, auth, examples) {
|
|
2101
2107
|
const hasNative = frontend.includes("native-bare") || frontend.includes("native-uniwind") || frontend.includes("native-unistyles");
|
|
2102
2108
|
const hasWeb = frontend.includes("react-router") || frontend.includes("tanstack-router") || frontend.includes("tanstack-start") || frontend.includes("next") || frontend.includes("nuxt") || frontend.includes("solid") || frontend.includes("svelte") || frontend.includes("astro");
|
|
2103
|
-
const defaultSiteUrl = hasNative && !hasWeb ? "http://localhost:8081" : frontend.includes("react-router") || frontend.includes("
|
|
2109
|
+
const defaultSiteUrl = hasNative && !hasWeb ? "http://localhost:8081" : frontend.includes("react-router") || frontend.includes("svelte") ? "http://localhost:5173" : frontend.includes("astro") ? "http://localhost:4321" : "http://localhost:3001";
|
|
2104
2110
|
let commentBlocks = "";
|
|
2105
2111
|
if (examples?.includes("ai")) commentBlocks += `# Set Google AI API key for AI agent
|
|
2106
2112
|
# npx convex env set GOOGLE_GENERATIVE_AI_API_KEY=your_google_api_key
|
|
@@ -2113,13 +2119,11 @@ ${hasWeb || hasNative ? `# npx convex env set SITE_URL ${defaultSiteUrl}\n` : ""
|
|
|
2113
2119
|
}
|
|
2114
2120
|
function buildServerVars(backend, frontend, auth, api, database, dbSetup, runtime, webDeploy, serverDeploy, payments, examples) {
|
|
2115
2121
|
const hasReactRouter = frontend.includes("react-router");
|
|
2116
|
-
const hasTanStackRouter = frontend.includes("tanstack-router");
|
|
2117
2122
|
const hasSvelte = frontend.includes("svelte");
|
|
2118
2123
|
const hasAstro = frontend.includes("astro");
|
|
2119
2124
|
let corsOrigin = "http://localhost:3001";
|
|
2120
2125
|
if (hasAstro) corsOrigin = "http://localhost:4321";
|
|
2121
|
-
else if (hasReactRouter ||
|
|
2122
|
-
else if (backend === "self") corsOrigin = "http://localhost:3001";
|
|
2126
|
+
else if (hasReactRouter || hasSvelte) corsOrigin = "http://localhost:5173";
|
|
2123
2127
|
let databaseUrl = null;
|
|
2124
2128
|
if (database !== "none" && dbSetup === "none") switch (database) {
|
|
2125
2129
|
case "postgres":
|
|
@@ -29449,28 +29453,28 @@ export function ThemeProvider({
|
|
|
29449
29453
|
},
|
|
29450
29454
|
"dependencies": {
|
|
29451
29455
|
"@{{projectName}}/ui": "{{#if (eq packageManager "npm")}}*{{else}}workspace:*{{/if}}",
|
|
29452
|
-
"@react-router/fs-routes": "^7.
|
|
29453
|
-
"@react-router/node": "^7.
|
|
29454
|
-
"@react-router/serve": "^7.
|
|
29455
|
-
"isbot": "^5.1.
|
|
29456
|
-
"lucide-react": "^
|
|
29456
|
+
"@react-router/fs-routes": "^7.14.1",
|
|
29457
|
+
"@react-router/node": "^7.14.1",
|
|
29458
|
+
"@react-router/serve": "^7.14.1",
|
|
29459
|
+
"isbot": "^5.1.39",
|
|
29460
|
+
"lucide-react": "^1.8.0",
|
|
29457
29461
|
"next-themes": "^0.4.6",
|
|
29458
|
-
"react": "^19.2.
|
|
29459
|
-
"react-dom": "^19.2.
|
|
29460
|
-
"react-router": "^7.
|
|
29461
|
-
"sonner": "^2.0.
|
|
29462
|
+
"react": "^19.2.5",
|
|
29463
|
+
"react-dom": "^19.2.5",
|
|
29464
|
+
"react-router": "^7.14.1",
|
|
29465
|
+
"sonner": "^2.0.7"
|
|
29462
29466
|
},
|
|
29463
29467
|
"devDependencies": {
|
|
29464
|
-
"@react-router/dev": "^7.
|
|
29465
|
-
"@tailwindcss/vite": "^4.
|
|
29468
|
+
"@react-router/dev": "^7.14.1",
|
|
29469
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
29466
29470
|
"@types/node": "^20",
|
|
29467
|
-
"@types/react": "^19.2.
|
|
29471
|
+
"@types/react": "^19.2.14",
|
|
29468
29472
|
"@types/react-dom": "^19.2.3",
|
|
29469
29473
|
"react-router-devtools": "^1.1.0",
|
|
29470
|
-
"tailwindcss": "^4.
|
|
29474
|
+
"tailwindcss": "^4.2.2",
|
|
29471
29475
|
"typescript": "^5.8.3",
|
|
29472
|
-
"vite": "^
|
|
29473
|
-
"vite-tsconfig-paths": "^
|
|
29476
|
+
"vite": "^8.0.8",
|
|
29477
|
+
"vite-tsconfig-paths": "^6.1.1"
|
|
29474
29478
|
}
|
|
29475
29479
|
}
|
|
29476
29480
|
`],
|
|
@@ -29994,26 +29998,26 @@ export default defineConfig({
|
|
|
29994
29998
|
"check-types": "vite build && tsc --noEmit"
|
|
29995
29999
|
},
|
|
29996
30000
|
"dependencies": {
|
|
29997
|
-
"@hookform/resolvers": "^5.
|
|
30001
|
+
"@hookform/resolvers": "^5.2.2",
|
|
29998
30002
|
"@{{projectName}}/ui": "{{#if (eq packageManager "npm")}}*{{else}}workspace:*{{/if}}",
|
|
29999
|
-
"@tailwindcss/vite": "^4.
|
|
30000
|
-
"@tanstack/react-router": "^1.
|
|
30001
|
-
"lucide-react": "^
|
|
30003
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
30004
|
+
"@tanstack/react-router": "^1.168.22",
|
|
30005
|
+
"lucide-react": "^1.8.0",
|
|
30002
30006
|
"next-themes": "^0.4.6",
|
|
30003
|
-
"react": "^19.2.
|
|
30004
|
-
"react-dom": "^19.2.
|
|
30005
|
-
"sonner": "^2.0.
|
|
30007
|
+
"react": "^19.2.5",
|
|
30008
|
+
"react-dom": "^19.2.5",
|
|
30009
|
+
"sonner": "^2.0.7"
|
|
30006
30010
|
},
|
|
30007
30011
|
"devDependencies": {
|
|
30008
|
-
"@tanstack/react-router-devtools": "^1.
|
|
30009
|
-
"@tanstack/router-plugin": "^1.
|
|
30012
|
+
"@tanstack/react-router-devtools": "^1.166.13",
|
|
30013
|
+
"@tanstack/router-plugin": "^1.167.22",
|
|
30010
30014
|
"@types/node": "^22.13.14",
|
|
30011
|
-
"@types/react": "^19.2.
|
|
30015
|
+
"@types/react": "^19.2.14",
|
|
30012
30016
|
"@types/react-dom": "^19.2.3",
|
|
30013
|
-
"@vitejs/plugin-react": "^
|
|
30014
|
-
"postcss": "^8.5.
|
|
30015
|
-
"tailwindcss": "^4.
|
|
30016
|
-
"vite": "^
|
|
30017
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
30018
|
+
"postcss": "^8.5.10",
|
|
30019
|
+
"tailwindcss": "^4.2.2",
|
|
30020
|
+
"vite": "^8.0.8"
|
|
30017
30021
|
}
|
|
30018
30022
|
}
|
|
30019
30023
|
`],
|
|
@@ -30120,6 +30124,7 @@ function ClerkApiAuthBridge() {
|
|
|
30120
30124
|
const router = createRouter({
|
|
30121
30125
|
routeTree,
|
|
30122
30126
|
defaultPreload: "intent",
|
|
30127
|
+
scrollRestoration: true,
|
|
30123
30128
|
defaultPendingComponent: () => <Loader />,
|
|
30124
30129
|
{{#if (eq api "orpc")}}
|
|
30125
30130
|
context: { orpc, queryClient },
|
|
@@ -30401,7 +30406,6 @@ function HomeComponent() {
|
|
|
30401
30406
|
"target": "ESNext",
|
|
30402
30407
|
"module": "ESNext",
|
|
30403
30408
|
"moduleResolution": "Bundler",
|
|
30404
|
-
"verbatimModuleSyntax": true,
|
|
30405
30409
|
"skipLibCheck": true,
|
|
30406
30410
|
"types": ["vite/client"],
|
|
30407
30411
|
"rootDirs": ["."],
|
|
@@ -30416,24 +30420,25 @@ function HomeComponent() {
|
|
|
30416
30420
|
["frontend/react/tanstack-router/vite.config.ts.hbs", `import tailwindcss from "@tailwindcss/vite";
|
|
30417
30421
|
import { tanstackRouter } from "@tanstack/router-plugin/vite";
|
|
30418
30422
|
import react from "@vitejs/plugin-react";
|
|
30419
|
-
import path from "node:path";
|
|
30420
30423
|
import { defineConfig } from "vite";
|
|
30421
30424
|
|
|
30422
30425
|
export default defineConfig({
|
|
30426
|
+
server: {
|
|
30427
|
+
port: 3001,
|
|
30428
|
+
},
|
|
30429
|
+
resolve: {
|
|
30430
|
+
tsconfigPaths: true,
|
|
30431
|
+
},
|
|
30423
30432
|
plugins: [
|
|
30424
30433
|
tailwindcss(),
|
|
30425
|
-
tanstackRouter({
|
|
30434
|
+
tanstackRouter({
|
|
30435
|
+
target: "react",
|
|
30436
|
+
autoCodeSplitting: true,
|
|
30437
|
+
}),
|
|
30426
30438
|
react(),
|
|
30427
30439
|
],
|
|
30428
|
-
|
|
30429
|
-
|
|
30430
|
-
"@": path.resolve(__dirname, "./src"),
|
|
30431
|
-
},
|
|
30432
|
-
},
|
|
30433
|
-
server: {
|
|
30434
|
-
port: 3001,
|
|
30435
|
-
},
|
|
30436
|
-
});`],
|
|
30440
|
+
});
|
|
30441
|
+
`],
|
|
30437
30442
|
["frontend/react/tanstack-start/package.json.hbs", `{
|
|
30438
30443
|
"name": "web",
|
|
30439
30444
|
"private": true,
|
|
@@ -30445,30 +30450,27 @@ export default defineConfig({
|
|
|
30445
30450
|
},
|
|
30446
30451
|
"dependencies": {
|
|
30447
30452
|
"@{{projectName}}/ui": "{{#if (eq packageManager "npm")}}*{{else}}workspace:*{{/if}}",
|
|
30448
|
-
"@tailwindcss/vite": "^4.
|
|
30449
|
-
"@tanstack/react-query": "^5.
|
|
30450
|
-
"@tanstack/react-router": "^1.
|
|
30451
|
-
"@tanstack/react-
|
|
30452
|
-
"
|
|
30453
|
-
"@tanstack/router-plugin": "^1.141.1",
|
|
30454
|
-
"lucide-react": "^0.546.0",
|
|
30453
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
30454
|
+
"@tanstack/react-query": "^5.99.0",
|
|
30455
|
+
"@tanstack/react-router": "^1.168.22",
|
|
30456
|
+
"@tanstack/react-start": "^1.167.41",
|
|
30457
|
+
"lucide-react": "^1.8.0",
|
|
30455
30458
|
"next-themes": "^0.4.6",
|
|
30456
|
-
"react": "^19.2.
|
|
30457
|
-
"react-dom": "^19.2.
|
|
30458
|
-
"sonner": "^2.0.
|
|
30459
|
-
"tailwindcss": "^4.
|
|
30460
|
-
"vite-tsconfig-paths": "^5.1.4"
|
|
30459
|
+
"react": "^19.2.5",
|
|
30460
|
+
"react-dom": "^19.2.5",
|
|
30461
|
+
"sonner": "^2.0.7",
|
|
30462
|
+
"tailwindcss": "^4.2.2"
|
|
30461
30463
|
},
|
|
30462
30464
|
"devDependencies": {
|
|
30463
|
-
"@tanstack/react-router-devtools": "^1.
|
|
30464
|
-
"@testing-library/dom": "^10.4.
|
|
30465
|
-
"@testing-library/react": "^16.2
|
|
30466
|
-
"@types/react": "^19.2.
|
|
30465
|
+
"@tanstack/react-router-devtools": "^1.166.13",
|
|
30466
|
+
"@testing-library/dom": "^10.4.1",
|
|
30467
|
+
"@testing-library/react": "^16.3.2",
|
|
30468
|
+
"@types/react": "^19.2.14",
|
|
30467
30469
|
"@types/react-dom": "^19.2.3",
|
|
30468
|
-
"@vitejs/plugin-react": "^
|
|
30469
|
-
"jsdom": "^
|
|
30470
|
-
"vite": "^
|
|
30471
|
-
"web-vitals": "^5.0
|
|
30470
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
30471
|
+
"jsdom": "^29.0.2",
|
|
30472
|
+
"vite": "^8.0.8",
|
|
30473
|
+
"web-vitals": "^5.2.0"
|
|
30472
30474
|
}
|
|
30473
30475
|
}
|
|
30474
30476
|
`],
|
|
@@ -30491,7 +30493,8 @@ import Loader from "./components/loader";
|
|
|
30491
30493
|
import "./index.css";
|
|
30492
30494
|
import { routeTree } from "./routeTree.gen";
|
|
30493
30495
|
{{#if (eq api "trpc")}}
|
|
30494
|
-
import { QueryCache, QueryClient
|
|
30496
|
+
import { QueryCache, QueryClient } from "@tanstack/react-query";
|
|
30497
|
+
import { setupRouterSsrQueryIntegration } from "@tanstack/react-router-ssr-query";
|
|
30495
30498
|
import { createTRPCClient, httpBatchLink } from "@trpc/client";
|
|
30496
30499
|
import { createTRPCOptionsProxy } from "@trpc/tanstack-react-query";
|
|
30497
30500
|
import { toast } from "sonner";
|
|
@@ -30504,7 +30507,7 @@ import { env } from "@{{projectName}}/env/web";
|
|
|
30504
30507
|
import { getClerkAuthToken } from "@/utils/clerk-auth";
|
|
30505
30508
|
{{/if}}
|
|
30506
30509
|
{{else if (eq api "orpc")}}
|
|
30507
|
-
import {
|
|
30510
|
+
import { setupRouterSsrQueryIntegration } from "@tanstack/react-router-ssr-query";
|
|
30508
30511
|
import { orpc, queryClient } from "./utils/orpc";
|
|
30509
30512
|
{{/if}}
|
|
30510
30513
|
{{/if}}
|
|
@@ -30604,22 +30607,20 @@ export const getRouter = () => {
|
|
|
30604
30607
|
defaultNotFoundComponent: () => <div>Not Found</div>,
|
|
30605
30608
|
{{#if (eq api "trpc")}}
|
|
30606
30609
|
Wrap: ({ children }) => (
|
|
30607
|
-
<
|
|
30608
|
-
<TRPCProvider trpcClient={trpcClient} queryClient={queryClient}>
|
|
30609
|
-
{children}
|
|
30610
|
-
</TRPCProvider>
|
|
30611
|
-
</QueryClientProvider>
|
|
30612
|
-
),
|
|
30613
|
-
{{else if (eq api "orpc")}}
|
|
30614
|
-
Wrap: ({ children }) => (
|
|
30615
|
-
<QueryClientProvider client={queryClient}>
|
|
30610
|
+
<TRPCProvider trpcClient={trpcClient} queryClient={queryClient}>
|
|
30616
30611
|
{children}
|
|
30617
|
-
</
|
|
30612
|
+
</TRPCProvider>
|
|
30618
30613
|
),
|
|
30619
|
-
{{else}}
|
|
30620
|
-
Wrap: ({ children }) => <>{children}</>,
|
|
30621
30614
|
{{/if}}
|
|
30622
30615
|
});
|
|
30616
|
+
{{#if (or (eq api "trpc") (eq api "orpc"))}}
|
|
30617
|
+
|
|
30618
|
+
setupRouterSsrQueryIntegration({
|
|
30619
|
+
router,
|
|
30620
|
+
queryClient,
|
|
30621
|
+
});
|
|
30622
|
+
{{/if}}
|
|
30623
|
+
|
|
30623
30624
|
return router;
|
|
30624
30625
|
};
|
|
30625
30626
|
{{/if}}
|
|
@@ -30984,7 +30985,6 @@ function HomeComponent() {
|
|
|
30984
30985
|
/* Bundler mode */
|
|
30985
30986
|
"moduleResolution": "bundler",
|
|
30986
30987
|
"allowImportingTsExtensions": true,
|
|
30987
|
-
"verbatimModuleSyntax": true,
|
|
30988
30988
|
"noEmit": true,
|
|
30989
30989
|
|
|
30990
30990
|
/* Linting */
|
|
@@ -31003,21 +31003,22 @@ function HomeComponent() {
|
|
|
31003
31003
|
}
|
|
31004
31004
|
`],
|
|
31005
31005
|
["frontend/react/tanstack-start/vite.config.ts.hbs", `import { defineConfig } from "vite";
|
|
31006
|
-
import tsconfigPaths from "vite-tsconfig-paths";
|
|
31007
31006
|
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
31008
31007
|
import tailwindcss from "@tailwindcss/vite";
|
|
31009
31008
|
import viteReact from "@vitejs/plugin-react";
|
|
31010
31009
|
|
|
31011
31010
|
export default defineConfig({
|
|
31011
|
+
server: {
|
|
31012
|
+
port: 3001,
|
|
31013
|
+
},
|
|
31014
|
+
resolve: {
|
|
31015
|
+
tsconfigPaths: true,
|
|
31016
|
+
},
|
|
31012
31017
|
plugins: [
|
|
31013
|
-
tsconfigPaths(),
|
|
31014
31018
|
tailwindcss(),
|
|
31015
31019
|
tanstackStart(),
|
|
31016
31020
|
viteReact(),
|
|
31017
31021
|
],
|
|
31018
|
-
server: {
|
|
31019
|
-
port: 3001,
|
|
31020
|
-
},
|
|
31021
31022
|
{{#if (and (eq backend "convex") (eq auth "better-auth"))}}
|
|
31022
31023
|
ssr: {
|
|
31023
31024
|
noExternal: ["@convex-dev/better-auth"],
|
|
@@ -31241,16 +31242,16 @@ dist-ssr
|
|
|
31241
31242
|
"test": "vitest run"
|
|
31242
31243
|
},
|
|
31243
31244
|
"dependencies": {
|
|
31244
|
-
"@tailwindcss/vite": "^4.
|
|
31245
|
-
"@tanstack/router-plugin": "^1.
|
|
31246
|
-
"@tanstack/solid-router": "^1.
|
|
31247
|
-
"lucide-solid": "^
|
|
31248
|
-
"solid-js": "^1.9.
|
|
31249
|
-
"tailwindcss": "^4.
|
|
31245
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
31246
|
+
"@tanstack/router-plugin": "^1.167.22",
|
|
31247
|
+
"@tanstack/solid-router": "^1.168.20",
|
|
31248
|
+
"lucide-solid": "^1.8.0",
|
|
31249
|
+
"solid-js": "^1.9.12",
|
|
31250
|
+
"tailwindcss": "^4.2.2"
|
|
31250
31251
|
},
|
|
31251
31252
|
"devDependencies": {
|
|
31252
|
-
"vite": "^
|
|
31253
|
-
"vite-plugin-solid": "^2.11.
|
|
31253
|
+
"vite": "^8.0.8",
|
|
31254
|
+
"vite-plugin-solid": "^2.11.12"
|
|
31254
31255
|
}
|
|
31255
31256
|
}
|
|
31256
31257
|
`],
|
|
@@ -31555,14 +31556,14 @@ vite.config.ts.timestamp-*
|
|
|
31555
31556
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
|
|
31556
31557
|
},
|
|
31557
31558
|
"devDependencies": {
|
|
31558
|
-
"@sveltejs/adapter-auto": "^
|
|
31559
|
-
"@sveltejs/kit": "^2.
|
|
31560
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
31561
|
-
"@tailwindcss/vite": "^4.
|
|
31562
|
-
"svelte": "^5.
|
|
31563
|
-
"svelte-check": "^4.
|
|
31564
|
-
"tailwindcss": "^4.
|
|
31565
|
-
"vite": "^
|
|
31559
|
+
"@sveltejs/adapter-auto": "^7.0.1",
|
|
31560
|
+
"@sveltejs/kit": "^2.57.1",
|
|
31561
|
+
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
31562
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
31563
|
+
"svelte": "^5.55.4",
|
|
31564
|
+
"svelte-check": "^4.4.6",
|
|
31565
|
+
"tailwindcss": "^4.2.2",
|
|
31566
|
+
"vite": "^8.0.8"
|
|
31566
31567
|
},
|
|
31567
31568
|
"dependencies": {}
|
|
31568
31569
|
}
|