@taprootio/site-authoring 0.20.0 → 0.22.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 (47) hide show
  1. package/README.md +128 -29
  2. package/examples/riverbend-wellness/nav.json +3 -6
  3. package/examples/riverbend-wellness/pages/visit.md +1 -1
  4. package/package.json +2 -2
  5. package/src/api.js +118 -31
  6. package/src/changelog.js +48 -0
  7. package/src/changelog.json +83 -0
  8. package/src/cli-release.js +9 -1
  9. package/src/cli.js +129 -14
  10. package/src/constants.js +19 -0
  11. package/src/errors.js +3 -0
  12. package/src/footer-contract.js +5 -3
  13. package/src/forms-workspace.js +22 -0
  14. package/src/heading-outline.js +76 -0
  15. package/src/index.js +1 -0
  16. package/src/output.js +9 -0
  17. package/src/page-metadata.js +2 -1
  18. package/src/page-structure-checks.js +356 -0
  19. package/src/presentation-reference.js +41 -6
  20. package/src/problems.js +6 -1
  21. package/src/redirects-contract.js +50 -140
  22. package/src/reference-help.js +77 -33
  23. package/src/reserved-paths.js +4 -10
  24. package/src/setting-reference.js +438 -0
  25. package/src/settings-catalog.js +2 -3
  26. package/src/site-check-findings.js +188 -0
  27. package/src/site-check-rules.json +35 -0
  28. package/src/site-checks.js +353 -0
  29. package/src/staging-check.js +48 -9
  30. package/src/staging-served.js +320 -0
  31. package/src/theme-projection.js +28 -55
  32. package/src/theme-validation.js +2 -1
  33. package/src/transport.js +13 -0
  34. package/src/typed-page-reference.js +128 -4
  35. package/src/verbs/changelog.js +62 -0
  36. package/src/verbs/deploy.js +38 -10
  37. package/src/verbs/index.js +3 -0
  38. package/src/verbs/nav-push.js +49 -1
  39. package/src/verbs/pages-push.js +17 -5
  40. package/src/verbs/plan.js +2 -1
  41. package/src/verbs/pull.js +5 -1
  42. package/src/verbs/redirects-check.js +4 -1
  43. package/src/verbs/staging-review.js +1 -1
  44. package/src/verbs/status.js +35 -28
  45. package/src/verbs/validate.js +24 -0
  46. package/src/workspace-check.js +26 -1
  47. package/src/workspace.js +5 -0
package/src/workspace.js CHANGED
@@ -1088,6 +1088,11 @@ export async function deleteWorkspaceFile(workspaceDir, relativePath) {
1088
1088
  return true;
1089
1089
  }
1090
1090
 
1091
+ /** Whether the workspace has this directory (a link or a file in its place is refused, as everywhere). */
1092
+ export async function workspaceDirectoryExists(workspaceDir, relativePath) {
1093
+ return await requireRealDirectoryChain(workspaceDir, relativePath, { includeLeaf: true });
1094
+ }
1095
+
1091
1096
  /**
1092
1097
  * Collects the workspace files a push verb should consider, in a stable sorted
1093
1098
  * order so two runs of the same workspace produce the same request sequence.