@catapultjs/deploy 0.12.0 → 0.13.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 (35) hide show
  1. package/README.md +34 -13
  2. package/build/bin/run.js +18 -42
  3. package/build/bin/run.js.map +1 -1
  4. package/build/commands/config_validate.d.ts +7 -0
  5. package/build/commands/config_validate.js +45 -0
  6. package/build/commands/config_validate.js.map +1 -0
  7. package/build/commands/init.js +18 -2
  8. package/build/commands/init.js.map +1 -1
  9. package/build/index.d.ts +1 -0
  10. package/build/index.js +1 -0
  11. package/build/index.js.map +1 -1
  12. package/build/src/config/json/loader.d.ts +4 -0
  13. package/build/src/config/json/loader.js +206 -0
  14. package/build/src/config/json/loader.js.map +1 -0
  15. package/build/src/config/json/recipe_registry.d.ts +3 -0
  16. package/build/src/config/json/recipe_registry.js +44 -0
  17. package/build/src/config/json/recipe_registry.js.map +1 -0
  18. package/build/src/config/json/schema.d.ts +45 -0
  19. package/build/src/config/json/schema.js +198 -0
  20. package/build/src/config/json/schema.js.map +1 -0
  21. package/build/src/config/loader.d.ts +2 -0
  22. package/build/src/config/loader.js +21 -0
  23. package/build/src/config/loader.js.map +1 -0
  24. package/build/src/config/resolve.d.ts +2 -0
  25. package/build/src/config/resolve.js +30 -0
  26. package/build/src/config/resolve.js.map +1 -0
  27. package/build/src/utils.js +8 -1
  28. package/build/src/utils.js.map +1 -1
  29. package/package.json +11 -6
  30. package/schema/deploy.schema.json +287 -0
  31. package/skills/catapultjs/SKILL.md +14 -11
  32. package/skills/catapultjs/references/cli.md +11 -2
  33. package/skills/catapultjs/references/config.md +133 -34
  34. package/skills/catapultjs/references/recipe.md +1 -1
  35. package/skills/catapultjs/references/recipes.md +4 -2
@@ -520,7 +520,7 @@ import '@catapultjs/deploy/recipes/directus'
520
520
  import '@catapultjs/deploy/recipes/caddy'
521
521
  ```
522
522
 
523
- Manages Caddy configuration. Does not deliver application code and does not reload Caddy by default unless `caddy_reload_after_publish` is set before importing the recipe. Service management is intentionally separate; combine with `recipes/systemd` and set `systemd_service` to `caddy` when Caddy is managed by systemd.
523
+ Manages Caddy configuration. Does not deliver application code and does not reload Caddy by default unless `caddy_reload_after_publish` is set before loading the recipe. Service management is intentionally separate; combine with `recipes/systemd` and set `systemd_service` to `caddy` when Caddy is managed by systemd.
524
524
 
525
525
  > [!WARNING]
526
526
  > Caddy must be able to traverse every parent directory of the configured web root and read the published files. Deploying under a private home directory such as `/home/deploy/...` may require extra permissions or ACLs. Prefer a web root under `/var/www/<app>` or `/srv/www/<app>` for static sites. On the server, use `namei -l /path/to/current/index.html` to inspect which directory blocks access.
@@ -545,9 +545,11 @@ Manages Caddy configuration. Does not deliver application code and does not relo
545
545
 
546
546
  ```typescript
547
547
  set('caddy_reload_after_publish', true)
548
- import '@catapultjs/deploy/recipes/caddy'
548
+ await import('@catapultjs/deploy/recipes/caddy')
549
549
  ```
550
550
 
551
+ Use a dynamic import when a recipe option changes pipeline wiring. Static ESM imports run before `set()` calls in the module body.
552
+
551
553
  ---
552
554
 
553
555
  ## `recipes/systemd`