@hype-stack/cli 0.5.1 → 0.5.3

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.
Files changed (41) hide show
  1. package/dist/{cli-B_dUEkkB.js → cli-NswFvMgQ.js} +1608 -1338
  2. package/dist/cli.d.ts.map +1 -1
  3. package/dist/commands/compose.d.ts.map +1 -1
  4. package/dist/commands/create.d.ts.map +1 -1
  5. package/dist/commands/init.d.ts +9 -2
  6. package/dist/commands/init.d.ts.map +1 -1
  7. package/dist/commands/install-helpers.d.ts +1 -1
  8. package/dist/commands/install-helpers.d.ts.map +1 -1
  9. package/dist/commands/onboard.d.ts +3 -0
  10. package/dist/commands/onboard.d.ts.map +1 -0
  11. package/dist/commands/template.d.ts.map +1 -1
  12. package/dist/config/bin.js +1 -1
  13. package/dist/constants/themes.d.ts +9 -0
  14. package/dist/constants/themes.d.ts.map +1 -1
  15. package/dist/core/apply-mode.d.ts +23 -0
  16. package/dist/core/apply-mode.d.ts.map +1 -0
  17. package/dist/core/codegen.d.ts +8 -4
  18. package/dist/core/codegen.d.ts.map +1 -1
  19. package/dist/core/env-files.d.ts +1 -0
  20. package/dist/core/env-files.d.ts.map +1 -1
  21. package/dist/core/onboard-catalog.d.ts +55 -0
  22. package/dist/core/onboard-catalog.d.ts.map +1 -0
  23. package/dist/core/onboard-env.d.ts +36 -0
  24. package/dist/core/onboard-env.d.ts.map +1 -0
  25. package/dist/core/post-clone.d.ts.map +1 -1
  26. package/dist/core/post-setup.d.ts +33 -0
  27. package/dist/core/post-setup.d.ts.map +1 -1
  28. package/dist/core/readme.d.ts +2 -1
  29. package/dist/core/readme.d.ts.map +1 -1
  30. package/dist/index.js +1 -1
  31. package/dist/themes.js +29 -25
  32. package/dist/types/types.d.ts +27 -0
  33. package/dist/types/types.d.ts.map +1 -1
  34. package/dist/ui/pack-multiselect.d.ts.map +1 -1
  35. package/dist/utils/exec.d.ts +10 -0
  36. package/dist/utils/exec.d.ts.map +1 -1
  37. package/dist/utils/naming.d.ts +17 -0
  38. package/dist/utils/naming.d.ts.map +1 -0
  39. package/dist/utils/validate.d.ts +6 -0
  40. package/dist/utils/validate.d.ts.map +1 -1
  41. package/package.json +1 -1
@@ -7,4 +7,14 @@ export declare function exec(command: string, args: string[], options: {
7
7
  cwd: string;
8
8
  onData?: (line: string) => void;
9
9
  }): Promise<ExecResult>;
10
+ /**
11
+ * Run a command with stdio inherited from the parent terminal. Use this for
12
+ * commands that need a real TTY on stdin, such as `prisma migrate dev`, which
13
+ * aborts with "environment is non-interactive" the moment it finishes loading
14
+ * the schema when stdin is piped/ignored. Output is not captured, it streams
15
+ * straight to the user, so stdout/stderr in the result are empty.
16
+ */
17
+ export declare function execInherit(command: string, args: string[], options: {
18
+ cwd: string;
19
+ }): Promise<ExecResult>;
10
20
  //# sourceMappingURL=exec.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/utils/exec.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE;IACP,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,GACA,OAAO,CAAC,UAAU,CAAC,CAsCrB"}
1
+ {"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/utils/exec.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE;IACP,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,GACA,OAAO,CAAC,UAAU,CAAC,CAsCrB;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GACvB,OAAO,CAAC,UAAU,CAAC,CAarB"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Convert a free-form project name typed by the user into a slug safe for npm
3
+ * package scopes, docker compose project names, directory names, and `appConfig.id`.
4
+ *
5
+ * "My App" -> "my-app", "My_Cool App!" -> "my-cool-app", "my--app" -> "my-app".
6
+ * Any run of characters that are not lowercase alphanumeric collapses to a single
7
+ * hyphen, leading/trailing hyphens are trimmed, and the result is lowercased.
8
+ */
9
+ export declare function slugifyProjectName(input: string): string;
10
+ /**
11
+ * The inverse of {@link slugifyProjectName} for display purposes: turn a slug
12
+ * like "my-app" into "My App". Used for the human-readable `appConfig.name` and
13
+ * README title, so the package scope stays slug-safe while the UI shows a real
14
+ * product name.
15
+ */
16
+ export declare function toDisplayName(slug: string): string;
17
+ //# sourceMappingURL=naming.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../src/utils/naming.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMxD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMlD"}
@@ -1,2 +1,8 @@
1
+ /**
2
+ * Validate a free-form project name the user typed. The name is slugified before
3
+ * use (see {@link slugifyProjectName}), so "My App" is accepted and becomes
4
+ * "my-app". We only reject inputs that are empty, too long, or that slugify to
5
+ * nothing (e.g. "!!!").
6
+ */
1
7
  export declare function validateProjectName(name: string): string | undefined;
2
8
  //# sourceMappingURL=validate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/utils/validate.ts"],"names":[],"mappings":"AAEA,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAcpE"}
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/utils/validate.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAepE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hype-stack/cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",