create-warlock 5.29.0 → 5.30.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/esm/commands/create-new-app/get-app-path.mjs +1 -1
  3. package/esm/commands/create-new-app/get-app-path.mjs.map +1 -1
  4. package/esm/commands/create-new-app/index.mjs +6 -3
  5. package/esm/commands/create-new-app/index.mjs.map +1 -1
  6. package/esm/commands/create-new-app/types.d.mts +1 -1
  7. package/esm/commands/create-warlock-app/index.mjs +1 -1
  8. package/esm/commands/create-warlock-app/index.mjs.map +1 -1
  9. package/esm/features/agent-kit-targets.mjs +1 -1
  10. package/esm/features/agent-kit-targets.mjs.map +1 -1
  11. package/esm/features/database-drivers.mjs +1 -1
  12. package/esm/features/database-drivers.mjs.map +1 -1
  13. package/esm/features/features-map.mjs +1 -1
  14. package/esm/features/features-map.mjs.map +1 -1
  15. package/esm/flags/assert-flag-combinations.mjs +1 -1
  16. package/esm/flags/assert-flag-combinations.mjs.map +1 -1
  17. package/esm/flags/assert-package-manager.mjs +1 -1
  18. package/esm/flags/assert-package-manager.mjs.map +1 -1
  19. package/esm/flags/definitions.mjs +1 -1
  20. package/esm/flags/definitions.mjs.map +1 -1
  21. package/esm/flags/seed-from-flags.mjs +1 -1
  22. package/esm/flags/seed-from-flags.mjs.map +1 -1
  23. package/esm/helpers/app.mjs +28 -6
  24. package/esm/helpers/app.mjs.map +1 -1
  25. package/esm/helpers/exec.mjs +1 -1
  26. package/esm/helpers/exec.mjs.map +1 -1
  27. package/esm/helpers/insert-import.mjs +1 -1
  28. package/esm/helpers/insert-import.mjs.map +1 -1
  29. package/esm/helpers/package-manager.mjs +22 -2
  30. package/esm/helpers/package-manager.mjs.map +1 -1
  31. package/esm/helpers/paths.mjs +1 -1
  32. package/esm/helpers/paths.mjs.map +1 -1
  33. package/esm/helpers/pnpm-build-approvals.mjs +58 -3
  34. package/esm/helpers/pnpm-build-approvals.mjs.map +1 -1
  35. package/esm/helpers/project-builder-helpers.mjs +1 -1
  36. package/esm/helpers/project-builder-helpers.mjs.map +1 -1
  37. package/esm/helpers/tty.mjs +1 -1
  38. package/esm/helpers/tty.mjs.map +1 -1
  39. package/esm/helpers/warlock-versions.mjs +1 -1
  40. package/esm/helpers/warlock-versions.mjs.map +1 -1
  41. package/esm/index.d.mts +1 -1
  42. package/esm/index.mjs +1 -1
  43. package/esm/index.mjs.map +1 -1
  44. package/esm/prompts/ask-agent-targets.mjs +4 -2
  45. package/esm/prompts/ask-agent-targets.mjs.map +1 -1
  46. package/esm/prompts/ask-ai-features.mjs +5 -3
  47. package/esm/prompts/ask-ai-features.mjs.map +1 -1
  48. package/esm/prompts/ask-project-name.mjs +1 -1
  49. package/esm/prompts/ask-project-name.mjs.map +1 -1
  50. package/esm/prompts/ask-stack.mjs +1 -1
  51. package/esm/prompts/ask-stack.mjs.map +1 -1
  52. package/esm/prompts/fit-to-terminal.mjs +46 -0
  53. package/esm/prompts/fit-to-terminal.mjs.map +1 -0
  54. package/esm/summary.mjs +1 -1
  55. package/esm/summary.mjs.map +1 -1
  56. package/esm/ui/banner.mjs +1 -1
  57. package/esm/ui/banner.mjs.map +1 -1
  58. package/esm/ui/report.mjs +1 -1
  59. package/esm/ui/report.mjs.map +1 -1
  60. package/esm/ui/spinner.mjs +1 -1
  61. package/esm/ui/spinner.mjs.map +1 -1
  62. package/esm/ui/spinners.mjs +1 -1
  63. package/esm/ui/spinners.mjs.map +1 -1
  64. package/llms-full.txt +7 -3
  65. package/package.json +5 -4
  66. package/skills/create-a-warlock-project/SKILL.md +7 -3
  67. package/templates/warlock/src/web/root.tsx +5 -0
package/llms-full.txt CHANGED
@@ -84,9 +84,13 @@ Using npm · database: none · agent-kit targets: claude
84
84
  | `--git` / `--no-git` | no | off | Initialize a Git repo (`git init` + `main` branch + initial commit).|
85
85
  | `--jwt` / `--no-jwt` | no | off | Generate JWT secrets via the project's `jwt` script. |
86
86
 
87
- With `--pm=pnpm`, selecting the `image` feature records only Sharp's required
88
- native build approval in the generated `pnpm-workspace.yaml` before install.
89
- An explicit existing denial is retained. If selected feature dependencies do
87
+ With `--pm=pnpm`, the scaffold reads `pnpm --version` and records install-script
88
+ approvals (esbuild, and Sharp when the `image` feature is selected) where that
89
+ version reads them: `allowBuilds` in `pnpm-workspace.yaml` on pnpm 10.26+, 11
90
+ and 12; that file plus `onlyBuiltDependencies` on 10.5–10.25; and, before 10.5,
91
+ no workspace file (those versions reject one without `packages:`) but
92
+ `pnpm.onlyBuiltDependencies` in `package.json`. An explicit existing denial is
93
+ retained. If selected feature dependencies do
90
94
  not install, JWT generation is skipped and reported rather than retried through
91
95
  the package manager.
92
96
  | `--yes` / `-y` | no | off | Fully headless mode. |
package/package.json CHANGED
@@ -4,15 +4,16 @@
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "https://github.com/warlockjs/create-warlock"
7
+ "url": "git+https://github.com/warlockjs/framework.git",
8
+ "directory": "packages/create-warlock"
8
9
  },
9
10
  "bin": {
10
11
  "create-warlock": "bin/create-app.js"
11
12
  },
12
13
  "dependencies": {
13
- "@clack/prompts": "^0.7.0",
14
+ "@clack/prompts": "^0.8.2",
14
15
  "@mongez/copper": "^2.1.3",
15
- "@warlock.js/fs": "5.29.0",
16
+ "@warlock.js/fs": "5.30.0",
16
17
  "@mongez/reinforcements": "^4.0.2",
17
18
  "cross-spawn": "^7.0.3",
18
19
  "rimraf": "^6.0.1",
@@ -21,7 +22,7 @@
21
22
  "engines": {
22
23
  "node": ">=22.13"
23
24
  },
24
- "version": "5.29.0",
25
+ "version": "5.30.0",
25
26
  "type": "module",
26
27
  "main": "./esm/index.mjs",
27
28
  "module": "./esm/index.mjs",
@@ -76,9 +76,13 @@ Using npm · database: none · agent-kit targets: claude
76
76
  | `--git` / `--no-git` | no | off | Initialize a Git repo (`git init` + `main` branch + initial commit).|
77
77
  | `--jwt` / `--no-jwt` | no | off | Generate JWT secrets via the project's `jwt` script. |
78
78
 
79
- With `--pm=pnpm`, selecting the `image` feature records only Sharp's required
80
- native build approval in the generated `pnpm-workspace.yaml` before install.
81
- An explicit existing denial is retained. If selected feature dependencies do
79
+ With `--pm=pnpm`, the scaffold reads `pnpm --version` and records install-script
80
+ approvals (esbuild, and Sharp when the `image` feature is selected) where that
81
+ version reads them: `allowBuilds` in `pnpm-workspace.yaml` on pnpm 10.26+, 11
82
+ and 12; that file plus `onlyBuiltDependencies` on 10.5–10.25; and, before 10.5,
83
+ no workspace file (those versions reject one without `packages:`) but
84
+ `pnpm.onlyBuiltDependencies` in `package.json`. An explicit existing denial is
85
+ retained. If selected feature dependencies do
82
86
  not install, JWT generation is skipped and reported rather than retried through
83
87
  the package manager.
84
88
  | `--yes` / `-y` | no | off | Fully headless mode. |
@@ -15,6 +15,11 @@ export default function App({ children }: AppProps) {
15
15
  return (
16
16
  <html lang={locale} dir={direction}>
17
17
  <head>
18
+ {/*
19
+ <Head /> also renders the viewport tag (width=device-width,
20
+ initial-scale=1). Change it with `metadata.viewport`,
21
+ or set it to false to leave it out; do not add a second one here.
22
+ */}
18
23
  {/*
19
24
  Placement only. The framework injects the page's `metadata`, the
20
25
  stylesheet and preload tags for this route, and the canonical links