create-better-t-stack 3.36.5 → 3.37.0
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 +1 -1
- package/dist/index.d.mts +6 -10
- package/dist/index.mjs +1 -1
- package/dist/{src-DpdI3cqy.mjs → src-IZv104V2.mjs} +787 -359
- package/package.json +5 -5
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { _ as types_exports, i as SchemaNameSchema, l as create, m as getSchemaResult, s as add, u as createBtsCli, v as getLatestCLIVersion } from "./src-
|
|
2
|
+
import { _ as types_exports, i as SchemaNameSchema, l as create, m as getSchemaResult, s as add, u as createBtsCli, v as getLatestCLIVersion } from "./src-IZv104V2.mjs";
|
|
3
3
|
import z from "zod";
|
|
4
4
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
5
5
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
package/dist/index.d.mts
CHANGED
|
@@ -321,6 +321,7 @@ declare const router: _$_trpc_server0.TRPCBuiltRouter<{
|
|
|
321
321
|
install?: boolean | undefined;
|
|
322
322
|
packageManager?: "bun" | "npm" | "pnpm" | undefined;
|
|
323
323
|
projectDir?: string | undefined;
|
|
324
|
+
dryRun?: boolean | undefined;
|
|
324
325
|
};
|
|
325
326
|
output: void;
|
|
326
327
|
meta: TrpcCliMeta;
|
|
@@ -441,6 +442,7 @@ declare function builder(): Promise<void>;
|
|
|
441
442
|
* ```
|
|
442
443
|
*/
|
|
443
444
|
declare function createVirtual(options: Partial<Omit<types_d_exports.ProjectConfig, "projectDir" | "relativePath">>): Promise<Result$1<VirtualFileTree$1, GeneratorError$1>>;
|
|
445
|
+
type AddOptions = Pick<types_d_exports.AddInput, "addons" | "addonOptions" | "install" | "packageManager" | "projectDir" | "dryRun">;
|
|
444
446
|
/**
|
|
445
447
|
* Programmatic API to add addons to an existing Better-T-Stack project.
|
|
446
448
|
*
|
|
@@ -453,19 +455,12 @@ declare function createVirtual(options: Partial<Omit<types_d_exports.ProjectConf
|
|
|
453
455
|
* install: true,
|
|
454
456
|
* });
|
|
455
457
|
*
|
|
456
|
-
* if (result
|
|
458
|
+
* if (result.success) {
|
|
457
459
|
* console.log(`Added: ${result.addedAddons.join(", ")}`);
|
|
458
460
|
* }
|
|
459
461
|
* ```
|
|
460
462
|
*/
|
|
461
|
-
declare function add(options?:
|
|
462
|
-
addons?: types_d_exports.Addons[];
|
|
463
|
-
addonOptions?: types_d_exports.AddonOptions;
|
|
464
|
-
install?: boolean;
|
|
465
|
-
packageManager?: types_d_exports.PackageManager;
|
|
466
|
-
projectDir?: string;
|
|
467
|
-
dryRun?: boolean;
|
|
468
|
-
}): Promise<AddResult | undefined>;
|
|
463
|
+
declare function add(options?: AddOptions): Promise<AddResult>;
|
|
469
464
|
type API = import__better_t_stack_types.API;
|
|
470
465
|
type AddonOptions = import__better_t_stack_types.AddonOptions;
|
|
471
466
|
type Addons = import__better_t_stack_types.Addons;
|
|
@@ -483,8 +478,9 @@ type InitResult = import__better_t_stack_types.InitResult;
|
|
|
483
478
|
type ORM = import__better_t_stack_types.ORM;
|
|
484
479
|
type PackageManager = import__better_t_stack_types.PackageManager;
|
|
485
480
|
type Payments = import__better_t_stack_types.Payments;
|
|
481
|
+
type ProjectConfig = import__better_t_stack_types.ProjectConfig;
|
|
486
482
|
type Runtime = import__better_t_stack_types.Runtime;
|
|
487
483
|
type ServerDeploy = import__better_t_stack_types.ServerDeploy;
|
|
488
484
|
type Template = import__better_t_stack_types.Template;
|
|
489
485
|
type WebDeploy = import__better_t_stack_types.WebDeploy;
|
|
490
|
-
export { type API, type AddResult, type AddonOptions, type Addons, type Auth, type Backend, type BetterTStackConfig, CLIError, CompatibilityError, CreateError, type CreateInput, type Database, type DatabaseSetup, DatabaseSetupError, type DbSetupOptions, type DirectoryConflict, DirectoryConflictError, EMBEDDED_TEMPLATES, type Examples, type Frontend, GeneratorError, type GeneratorOptions, type InitResult, type ORM, type PackageManager, type Payments, ProjectCreationError, Result, type Runtime, SchemaName, SchemaNameSchema, type ServerDeploy, TEMPLATE_COUNT, type Template, UserCancelledError, ValidationError, type VirtualDirectory, type VirtualFile, VirtualFileSystem, type VirtualFileTree, type VirtualNode, type WebDeploy, add, builder, create, createBtsCli, createVirtual, docs, generate, getSchemaResult, router, sponsors };
|
|
486
|
+
export { type API, AddOptions, type AddResult, type AddonOptions, type Addons, type Auth, type Backend, type BetterTStackConfig, CLIError, CompatibilityError, CreateError, type CreateInput, type Database, type DatabaseSetup, DatabaseSetupError, type DbSetupOptions, type DirectoryConflict, DirectoryConflictError, EMBEDDED_TEMPLATES, type Examples, type Frontend, GeneratorError, type GeneratorOptions, type InitResult, type ORM, type PackageManager, type Payments, type ProjectConfig, ProjectCreationError, Result, type Runtime, SchemaName, SchemaNameSchema, type ServerDeploy, TEMPLATE_COUNT, type Template, UserCancelledError, ValidationError, type VirtualDirectory, type VirtualFile, VirtualFileSystem, type VirtualFileTree, type VirtualNode, type WebDeploy, add, builder, create, createBtsCli, createVirtual, docs, generate, getSchemaResult, router, sponsors };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as ProjectCreationError, S as DirectoryConflictError, T as ValidationError, a as TEMPLATE_COUNT, b as CompatibilityError, c as builder, d as createVirtual, f as docs, g as sponsors, h as router, i as SchemaNameSchema, l as create, m as getSchemaResult, n as GeneratorError, o as VirtualFileSystem, p as generate, r as Result, s as add, t as EMBEDDED_TEMPLATES, u as createBtsCli, w as UserCancelledError, x as DatabaseSetupError, y as CLIError } from "./src-
|
|
2
|
+
import { C as ProjectCreationError, S as DirectoryConflictError, T as ValidationError, a as TEMPLATE_COUNT, b as CompatibilityError, c as builder, d as createVirtual, f as docs, g as sponsors, h as router, i as SchemaNameSchema, l as create, m as getSchemaResult, n as GeneratorError, o as VirtualFileSystem, p as generate, r as Result, s as add, t as EMBEDDED_TEMPLATES, u as createBtsCli, w as UserCancelledError, x as DatabaseSetupError, y as CLIError } from "./src-IZv104V2.mjs";
|
|
3
3
|
export { CLIError, CompatibilityError, DatabaseSetupError, DirectoryConflictError, EMBEDDED_TEMPLATES, GeneratorError, ProjectCreationError, Result, SchemaNameSchema, TEMPLATE_COUNT, UserCancelledError, ValidationError, VirtualFileSystem, add, builder, create, createBtsCli, createVirtual, docs, generate, getSchemaResult, router, sponsors };
|