create-frootkit 1.2.9 → 1.2.11

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.
@@ -1,8 +1,3 @@
1
- /**
2
- * Database & ORM Add-on for create-frootkit
3
- * Injects Drizzle ORM or Prisma into generated FrootKit projects with
4
- * template-tailored models and seeding (zero C++ dependencies via @libsql/client).
5
- */
6
1
  export type DatabaseOption = 'none' | 'drizzle' | 'prisma';
7
2
  export interface PackageJsonLike {
8
3
  scripts?: Record<string, string>;
@@ -10,5 +5,18 @@ export interface PackageJsonLike {
10
5
  devDependencies?: Record<string, string>;
11
6
  [key: string]: unknown;
12
7
  }
8
+ export declare const ADMIN_PASSWORD_HASH = "pbkdf2:sha256:100000:cbbb127ce3a186856aed9805e890e625:284c9b9655dc6cdd14da488ee33dd9296e188514c59e960bb6c7137e9a6f468c";
9
+ /**
10
+ * Returns raw SQL DDL for initial table creation
11
+ */
12
+ export declare function getTemplateDdl(templateId: string): string;
13
+ /**
14
+ * Returns raw SQL statements for seeding actual data (not dummy!)
15
+ */
16
+ export declare function getTemplateSeedSql(templateId: string): string;
17
+ /**
18
+ * Directly seeds the physical SQLite database file at scaffold time using node:sqlite.
19
+ */
20
+ export declare function seedPhysicalDatabase(targetDir: string, dbOption: DatabaseOption, templateId: string): void;
13
21
  export declare function applyDatabaseAddon(files: Record<string, string>, dbOption: DatabaseOption, templateId?: string): void;
14
22
  //# sourceMappingURL=database.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../../src/addons/database.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3D,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAA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