@hype-stack/cli 0.5.5 → 0.5.6

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,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as e } from "../cli-DKFOY4GJ.js";
2
+ import { t as e } from "../cli-BOykXnFK.js";
3
3
  Object.freeze({ status: "aborted" });
4
4
  function t(e, t, n) {
5
5
  function r(n, r) {
@@ -4,18 +4,21 @@ export type CodegenCommandRunner = (command: string, args: string[], options: {
4
4
  cwd: string;
5
5
  }) => Promise<ExecResult>;
6
6
  /**
7
- * After packs are installed, offer to run a migration so new Prisma models ship
8
- * as a real migration. `prisma migrate dev` generates the client as part of its
9
- * own pipeline, so no separate `prisma generate` step is needed. Anything that
10
- * can't run (declined, no backend, no database) falls back to printed
11
- * instructions instead of failing the install. This is the shared mechanism
12
- * templates reuse.
7
+ * After packs are installed, generate the Prisma client and offer to run a
8
+ * migration so new Prisma models ship as a real migration. The client is
9
+ * generated unconditionally (it needs no database): the backend's Vite build
10
+ * externalizes `@prisma/client` to `./src/db/postgres/generated/client` and a
11
+ * `writeBundle` plugin copies it into `dist/` only if it exists, so `pnpm dev`
12
+ * produces a broken bundle that fails at runtime when the client is missing.
13
+ * `prisma migrate dev` then creates + applies the initial migration. Anything
14
+ * that can't run (declined, no backend, no database) falls back to printed
15
+ * instructions instead of failing the install.
13
16
  */
14
17
  export declare function promptPackCodegen(options: {
15
18
  projectRoot: string;
16
19
  paths: StackPaths;
17
20
  skipPrompts: boolean;
18
- /** When false, the database is known to be down, so skip the prompt and print manual steps. */
21
+ /** When false, the database is known to be down, so skip the migrate prompt and print manual steps. */
19
22
  dbReady?: boolean;
20
23
  /** True when the project was just scaffolded, so the dev DB has no real data and is safe to reset. */
21
24
  freshScaffold?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../src/core/codegen.ts"],"names":[],"mappings":"AAGA,OAAO,K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ACxB,UAAU,CAAC,EAAE,oBAAoB,CAAC;CACnC,GAAG,OAAO,CAAC,IAAI,CAAC,CAyFhB"}
@@ -30,11 +30,11 @@ export interface BuildPackChoiceGroupsOptions {
30
30
  }
31
31
  /**
32
32
  * Group the selectable packs into ordered choice groups for the compose picker.
33
- * Starter and Layout are single-choice; Features is multiselect. Layout defaults
34
- * to Basic when it is on offer. When `adminAvailable` is set, a second layout group
35
- * is emitted so the admin app gets its own independent layout pick. Categories with
36
- * no selectable packs are dropped, so a fully-installed module never shows an empty
37
- * prompt.
33
+ * Starter and Layout are single-choice; Features is multiselect. Starter defaults
34
+ * to Better Auth and Layout defaults to Basic when those are on offer. When
35
+ * `adminAvailable` is set, a second layout group is emitted so the admin app gets
36
+ * its own independent layout pick. Categories with no selectable packs are
37
+ * dropped, so a fully-installed module never shows an empty prompt.
38
38
  */
39
39
  export declare function buildPackChoiceGroups(selectable: PackListItem[], options?: BuildPackChoiceGroupsOptions): PackChoiceGroup[];
40
40
  //# sourceMappingURL=pack-categories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pack-categories.d.ts","sourceRoot":"","sources":["../../src/core/pack-categories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE9E,sDAAsD;AACtD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,IAAI,EAAE,UAAU,CAAC;IACjB,qDAAqD;IACrD,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,2EAA2E;IAC3E,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,+FAA+F;AAC/F,eAAO,MAAM,cAAc,EAAE,YAAY,EAAqC,CAAC;AAc/E,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,YAAY,EAAE,EAC1B,OAAO,GAAE,4BAAiC,GACzC,eAAe,EAAE,CAqBnB"}
1
+ {"version":3,"file":"pack-categories.d.ts","sourceRoot":"","sources":["../../src/core/pack-categories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE9E,sDAAsD;AACtD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,IAAI,EAAE,UAAU,CAAC;IACjB,qDAAqD;IACrD,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,2EAA2E;IAC3E,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,+FAA+F;AAC/F,eAAO,MAAM,cAAc,EAAE,YAAY,EAAqC,CAAC;AAiB/E,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,YAAY,EAAE,EAC1B,OAAO,GAAE,4BAAiC,GACzC,eAAe,EAAE,CA0BnB"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./cli-DKFOY4GJ.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./cli-BOykXnFK.js";
2
2
  export { t as composeCommand, a as createCommand, o as createProgram, e as ensureInit, r as initCommand, i as loginCommand, n as logoutCommand };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hype-stack/cli",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",