@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.
- package/dist/{cli-DKFOY4GJ.js → cli-BOykXnFK.js} +790 -763
- package/dist/config/bin.js +1 -1
- package/dist/core/codegen.d.ts +10 -7
- package/dist/core/codegen.d.ts.map +1 -1
- package/dist/core/pack-categories.d.ts +5 -5
- package/dist/core/pack-categories.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/config/bin.js
CHANGED
package/dist/core/codegen.d.ts
CHANGED
|
@@ -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,
|
|
8
|
-
* as a real migration.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
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,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAInD,MAAM,MAAM,oBAAoB,GAAG,CACjC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,KACrB,OAAO,CAAC,UAAU,CAAC,CAAC;AAczB
|
|
1
|
+
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../src/core/codegen.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAInD,MAAM,MAAM,oBAAoB,GAAG,CACjC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,KACrB,OAAO,CAAC,UAAU,CAAC,CAAC;AAczB;;;;;;;;;;GAUG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,uGAAuG;IACvG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sGAAsG;IACtG,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,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.
|
|
34
|
-
* to Basic when
|
|
35
|
-
* is emitted so the admin app gets
|
|
36
|
-
*
|
|
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;
|
|
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-
|
|
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 };
|