create-better-t-stack 3.19.0 → 3.19.2
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.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { _ as DatabaseSetupError, a as VirtualFileSystem, b as UserCancelledError, c as create, d as docs, f as generate, g as CompatibilityError, h as CLIError, i as TEMPLATE_COUNT, l as createBtsCli, m as sponsors, n as GeneratorError, o as add, p as router, r as Result, s as builder, t as EMBEDDED_TEMPLATES, u as createVirtual, v as DirectoryConflictError, x as ValidationError, y as ProjectCreationError } from "./src-
|
|
2
|
+
import { _ as DatabaseSetupError, a as VirtualFileSystem, b as UserCancelledError, c as create, d as docs, f as generate, g as CompatibilityError, h as CLIError, i as TEMPLATE_COUNT, l as createBtsCli, m as sponsors, n as GeneratorError, o as add, p as router, r as Result, s as builder, t as EMBEDDED_TEMPLATES, u as createVirtual, v as DirectoryConflictError, x as ValidationError, y as ProjectCreationError } from "./src-7x63_Zwm.mjs";
|
|
3
3
|
|
|
4
4
|
export { CLIError, CompatibilityError, DatabaseSetupError, DirectoryConflictError, EMBEDDED_TEMPLATES, GeneratorError, ProjectCreationError, Result, TEMPLATE_COUNT, UserCancelledError, ValidationError, VirtualFileSystem, add, builder, create, createBtsCli, createVirtual, docs, generate, router, sponsors };
|
|
@@ -4006,7 +4006,7 @@ async function setupWithNeonDb(projectDir, packageManager, backend) {
|
|
|
4006
4006
|
s.stop(pc.red("Failed to create directory"));
|
|
4007
4007
|
return ensureDirResult;
|
|
4008
4008
|
}
|
|
4009
|
-
const packageArgs = getPackageExecutionArgs(packageManager,
|
|
4009
|
+
const packageArgs = getPackageExecutionArgs(packageManager, `get-db@latest --yes --ref "sbA3tIe"`);
|
|
4010
4010
|
return Result.tryPromise({
|
|
4011
4011
|
try: async () => {
|
|
4012
4012
|
await $({ cwd: targetDir })`${packageArgs}`;
|
|
@@ -4025,7 +4025,7 @@ async function setupWithNeonDb(projectDir, packageManager, backend) {
|
|
|
4025
4025
|
function displayManualSetupInstructions$2(target) {
|
|
4026
4026
|
log.info(`Manual Neon PostgreSQL Setup Instructions:
|
|
4027
4027
|
|
|
4028
|
-
1.
|
|
4028
|
+
1. Get Neon with Better T Stack referral: https://get.neon.com/sbA3tIe
|
|
4029
4029
|
2. Create a new project from the dashboard
|
|
4030
4030
|
3. Get your connection string
|
|
4031
4031
|
4. Add the database URL to the .env file in ${target}/.env
|
|
@@ -4083,7 +4083,7 @@ async function setupNeonPostgres(config, cliInput) {
|
|
|
4083
4083
|
const envResult$1 = await writeEnvFile$2(projectDir, backend);
|
|
4084
4084
|
if (envResult$1.isErr()) return envResult$1;
|
|
4085
4085
|
displayManualSetupInstructions$2(target);
|
|
4086
|
-
}
|
|
4086
|
+
} else log.info(`Get Neon with Better T Stack referral: ${pc.cyan("https://get.neon.com/sbA3tIe")}`);
|
|
4087
4087
|
return neonDbResult;
|
|
4088
4088
|
}
|
|
4089
4089
|
const suggestedProjectName = path.basename(projectDir);
|
|
@@ -4115,6 +4115,7 @@ async function setupNeonPostgres(config, cliInput) {
|
|
|
4115
4115
|
return envResult;
|
|
4116
4116
|
}
|
|
4117
4117
|
finalSpinner.stop("Neon database configured!");
|
|
4118
|
+
log.info(`Get Neon with Better T Stack referral: ${pc.cyan("https://get.neon.com/sbA3tIe")}`);
|
|
4118
4119
|
return Result.ok(void 0);
|
|
4119
4120
|
}
|
|
4120
4121
|
|
|
@@ -4215,7 +4216,7 @@ async function setupWithCreateDb(serverDir, packageManager) {
|
|
|
4215
4216
|
initialValue: "ap-southeast-1"
|
|
4216
4217
|
});
|
|
4217
4218
|
if (isCancel(selectedRegion)) return userCancelled("Operation cancelled");
|
|
4218
|
-
const createDbArgs = getPackageExecutionArgs(packageManager, `create-db@latest --json --region ${selectedRegion}`);
|
|
4219
|
+
const createDbArgs = getPackageExecutionArgs(packageManager, `create-db@latest --json --region ${selectedRegion} --user-agent "aman/better-t-stack"`);
|
|
4219
4220
|
const s = spinner();
|
|
4220
4221
|
s.start("Creating Prisma Postgres database...");
|
|
4221
4222
|
const execResult = await Result.tryPromise({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "3.19.
|
|
3
|
+
"version": "3.19.2",
|
|
4
4
|
"description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"better-auth",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"prepublishOnly": "npm run build"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@better-t-stack/template-generator": "^3.19.
|
|
74
|
-
"@better-t-stack/types": "^3.19.
|
|
73
|
+
"@better-t-stack/template-generator": "^3.19.2",
|
|
74
|
+
"@better-t-stack/types": "^3.19.2",
|
|
75
75
|
"@clack/core": "^0.5.0",
|
|
76
76
|
"@clack/prompts": "^1.0.0-alpha.9",
|
|
77
77
|
"@orpc/server": "^1.13.4",
|