create-better-t-stack 3.7.3-canary.53fc0031 → 3.7.3-canary.7ab22822
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 → cli.mjs}
RENAMED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import * as _orpc_server0 from "@orpc/server";
|
|
3
3
|
import * as trpc_cli0 from "trpc-cli";
|
|
4
4
|
import z from "zod";
|
|
5
|
-
import { API, AddInput, Addons, Backend, BetterTStackConfig, CreateInput, Database, DatabaseSetup, DirectoryConflict, Examples, Frontend, InitResult, ORM, PackageManager, ProjectConfig, Runtime, ServerDeploy, Template, WebDeploy } from "@
|
|
5
|
+
import { API, AddInput, Addons, Backend, BetterTStackConfig, CreateInput, Database, DatabaseSetup, DirectoryConflict, Examples, Frontend, InitResult, ORM, PackageManager, ProjectConfig, Runtime, ServerDeploy, Template, WebDeploy } from "@better-t-stack/types";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
|
8
8
|
declare const router: {
|
|
9
9
|
init: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, z.ZodTuple<[z.ZodOptional<z.ZodString>, z.ZodObject<{
|
|
10
10
|
template: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
none: "none";
|
|
11
12
|
mern: "mern";
|
|
12
13
|
pern: "pern";
|
|
13
14
|
t3: "t3";
|
|
14
15
|
uniwind: "uniwind";
|
|
15
|
-
none: "none";
|
|
16
16
|
}>>;
|
|
17
17
|
yes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
18
18
|
yolo: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -72,9 +72,9 @@ declare const router: {
|
|
|
72
72
|
}>>>;
|
|
73
73
|
git: z.ZodOptional<z.ZodBoolean>;
|
|
74
74
|
packageManager: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
bun: "bun";
|
|
75
76
|
npm: "npm";
|
|
76
77
|
pnpm: "pnpm";
|
|
77
|
-
bun: "bun";
|
|
78
78
|
}>>;
|
|
79
79
|
install: z.ZodOptional<z.ZodBoolean>;
|
|
80
80
|
dbSetup: z.ZodOptional<z.ZodEnum<{
|
|
@@ -117,10 +117,10 @@ declare const router: {
|
|
|
117
117
|
alchemy: "alchemy";
|
|
118
118
|
}>>;
|
|
119
119
|
directoryConflict: z.ZodOptional<z.ZodEnum<{
|
|
120
|
-
error: "error";
|
|
121
120
|
merge: "merge";
|
|
122
121
|
overwrite: "overwrite";
|
|
123
122
|
increment: "increment";
|
|
123
|
+
error: "error";
|
|
124
124
|
}>>;
|
|
125
125
|
renderTitle: z.ZodOptional<z.ZodBoolean>;
|
|
126
126
|
disableAnalytics: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -170,7 +170,7 @@ declare const router: {
|
|
|
170
170
|
auth: "none" | "better-auth" | "clerk";
|
|
171
171
|
payments: "none" | "polar";
|
|
172
172
|
git: boolean;
|
|
173
|
-
packageManager: "
|
|
173
|
+
packageManager: "bun" | "npm" | "pnpm";
|
|
174
174
|
install: boolean;
|
|
175
175
|
dbSetup: "none" | "turso" | "neon" | "prisma-postgres" | "planetscale" | "mongodb-atlas" | "supabase" | "d1" | "docker";
|
|
176
176
|
api: "none" | "trpc" | "orpc";
|
|
@@ -228,7 +228,7 @@ declare const router: {
|
|
|
228
228
|
auth: "none" | "better-auth" | "clerk";
|
|
229
229
|
payments: "none" | "polar";
|
|
230
230
|
git: boolean;
|
|
231
|
-
packageManager: "
|
|
231
|
+
packageManager: "bun" | "npm" | "pnpm";
|
|
232
232
|
install: boolean;
|
|
233
233
|
dbSetup: "none" | "turso" | "neon" | "prisma-postgres" | "planetscale" | "mongodb-atlas" | "supabase" | "d1" | "docker";
|
|
234
234
|
api: "none" | "trpc" | "orpc";
|
|
@@ -267,9 +267,9 @@ declare const router: {
|
|
|
267
267
|
projectDir: z.ZodOptional<z.ZodString>;
|
|
268
268
|
install: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
269
269
|
packageManager: z.ZodOptional<z.ZodEnum<{
|
|
270
|
+
bun: "bun";
|
|
270
271
|
npm: "npm";
|
|
271
272
|
pnpm: "pnpm";
|
|
272
|
-
bun: "bun";
|
|
273
273
|
}>>;
|
|
274
274
|
}, z.core.$strip>], null>, _orpc_server0.Schema<void, void>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
275
275
|
sponsors: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, _orpc_server0.Schema<unknown, unknown>, _orpc_server0.Schema<void, void>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
@@ -326,7 +326,7 @@ declare function init(projectName?: string, options?: CreateInput): Promise<{
|
|
|
326
326
|
auth: "none" | "better-auth" | "clerk";
|
|
327
327
|
payments: "none" | "polar";
|
|
328
328
|
git: boolean;
|
|
329
|
-
packageManager: "
|
|
329
|
+
packageManager: "bun" | "npm" | "pnpm";
|
|
330
330
|
install: boolean;
|
|
331
331
|
dbSetup: "none" | "turso" | "neon" | "prisma-postgres" | "planetscale" | "mongodb-atlas" | "supabase" | "d1" | "docker";
|
|
332
332
|
api: "none" | "trpc" | "orpc";
|
package/dist/index.mjs
ADDED
|
@@ -8,7 +8,7 @@ import path from "node:path";
|
|
|
8
8
|
import consola, { consola as consola$1 } from "consola";
|
|
9
9
|
import fs from "fs-extra";
|
|
10
10
|
import { fileURLToPath } from "node:url";
|
|
11
|
-
import { APISchema, AddonsSchema, AuthSchema, BackendSchema, DatabaseSchema, DatabaseSetupSchema, DirectoryConflictSchema, ExamplesSchema, FrontendSchema, ORMSchema, PackageManagerSchema, PaymentsSchema, ProjectNameSchema, RuntimeSchema, ServerDeploySchema, TemplateSchema, WebDeploySchema } from "@
|
|
11
|
+
import { APISchema, AddonsSchema, AuthSchema, BackendSchema, DatabaseSchema, DatabaseSetupSchema, DirectoryConflictSchema, ExamplesSchema, FrontendSchema, ORMSchema, PackageManagerSchema, PaymentsSchema, ProjectNameSchema, RuntimeSchema, ServerDeploySchema, TemplateSchema, WebDeploySchema } from "@better-t-stack/types";
|
|
12
12
|
import gradient from "gradient-string";
|
|
13
13
|
import * as JSONC from "jsonc-parser";
|
|
14
14
|
import { $, execa } from "execa";
|
|
@@ -1253,7 +1253,7 @@ async function sendConvexEvent(payload) {
|
|
|
1253
1253
|
}
|
|
1254
1254
|
async function trackProjectCreation(config, disableAnalytics = false) {
|
|
1255
1255
|
if (!isTelemetryEnabled() || disableAnalytics) return;
|
|
1256
|
-
const { projectName: _projectName, projectDir: _projectDir, relativePath: _relativePath
|
|
1256
|
+
const { projectName: _projectName, projectDir: _projectDir, relativePath: _relativePath, ...safeConfig } = config;
|
|
1257
1257
|
try {
|
|
1258
1258
|
await sendConvexEvent({
|
|
1259
1259
|
...safeConfig,
|
|
@@ -6740,7 +6740,7 @@ async function createProjectHandler(input) {
|
|
|
6740
6740
|
log.message(displayConfig(config));
|
|
6741
6741
|
} else {
|
|
6742
6742
|
const flagConfig = processAndValidateFlags(cliInput, providedFlags, finalBaseName);
|
|
6743
|
-
const { projectName: _projectNameFromFlags
|
|
6743
|
+
const { projectName: _projectNameFromFlags, ...otherFlags } = flagConfig;
|
|
6744
6744
|
if (Object.keys(otherFlags).length > 0) {
|
|
6745
6745
|
log.info(pc.yellow("Using these pre-selected options:"));
|
|
6746
6746
|
log.message(displayConfig(otherFlags));
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "3.7.3-canary.
|
|
3
|
+
"version": "3.7.3-canary.7ab22822",
|
|
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",
|
|
7
7
|
"author": "Aman Varshney",
|
|
8
8
|
"bin": {
|
|
9
|
-
"create-better-t-stack": "dist/cli.
|
|
9
|
+
"create-better-t-stack": "dist/cli.mjs"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"templates",
|
|
@@ -57,39 +57,39 @@
|
|
|
57
57
|
},
|
|
58
58
|
"exports": {
|
|
59
59
|
".": {
|
|
60
|
-
"types": "./dist/index.d.
|
|
61
|
-
"import": "./dist/index.
|
|
60
|
+
"types": "./dist/index.d.mts",
|
|
61
|
+
"import": "./dist/index.mjs"
|
|
62
62
|
},
|
|
63
63
|
"./cli": {
|
|
64
|
-
"import": "./dist/cli.
|
|
64
|
+
"import": "./dist/cli.mjs"
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@
|
|
69
|
-
"@biomejs/js-api": "^
|
|
70
|
-
"@biomejs/wasm-nodejs": "^2.
|
|
71
|
-
"@clack/prompts": "^1.0.0-alpha.
|
|
72
|
-
"@orpc/server": "^1.
|
|
68
|
+
"@better-t-stack/types": "3.7.3-canary.7ab22822",
|
|
69
|
+
"@biomejs/js-api": "^4.0.0",
|
|
70
|
+
"@biomejs/wasm-nodejs": "^2.3.8",
|
|
71
|
+
"@clack/prompts": "^1.0.0-alpha.8",
|
|
72
|
+
"@orpc/server": "^1.12.2",
|
|
73
73
|
"consola": "^3.4.2",
|
|
74
|
-
"execa": "^9.6.
|
|
74
|
+
"execa": "^9.6.1",
|
|
75
75
|
"fs-extra": "^11.3.2",
|
|
76
76
|
"gradient-string": "^3.0.0",
|
|
77
77
|
"handlebars": "^4.7.8",
|
|
78
78
|
"jsonc-parser": "^3.3.1",
|
|
79
79
|
"picocolors": "^1.1.1",
|
|
80
80
|
"tinyglobby": "^0.2.15",
|
|
81
|
-
"trpc-cli": "^0.12.
|
|
81
|
+
"trpc-cli": "^0.12.1",
|
|
82
82
|
"ts-morph": "^27.0.2",
|
|
83
|
-
"yaml": "^2.8.
|
|
83
|
+
"yaml": "^2.8.2",
|
|
84
84
|
"zod": "^4.1.13"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@types/fs-extra": "^11.0.4",
|
|
88
|
-
"@types/node": "^24.
|
|
89
|
-
"@vitest/ui": "^
|
|
90
|
-
"publint": "^0.3.
|
|
91
|
-
"tsdown": "^0.
|
|
88
|
+
"@types/node": "^24.10.2",
|
|
89
|
+
"@vitest/ui": "^4.0.15",
|
|
90
|
+
"publint": "^0.3.16",
|
|
91
|
+
"tsdown": "^0.17.2",
|
|
92
92
|
"typescript": "^5.9.3",
|
|
93
|
-
"vitest": "^
|
|
93
|
+
"vitest": "^4.0.15"
|
|
94
94
|
}
|
|
95
95
|
}
|
package/dist/index.js
DELETED
|
File without changes
|