@nuasite/cli 0.52.0 → 0.53.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.
package/README.md CHANGED
@@ -63,9 +63,10 @@ config, and run `nua dev`.
63
63
  Validates the content collections without building the site:
64
64
 
65
65
  ```bash
66
- nua check # exit 1 on errors
67
- nua check --json # machine-readable report
68
- nua check --strict # warnings fail too
66
+ nua check # exit 1 on errors
67
+ nua check --json # machine-readable report
68
+ nua check --strict # warnings fail too
69
+ nua check --content-only # skip the source parse
69
70
  ```
70
71
 
71
72
  Run it anywhere in the project: with no `astro.config.*` in the current directory
@@ -77,6 +78,13 @@ frontmatter that does not parse, values that do not match a declared field type
77
78
  (`order: ""` where the schema wants a number), missing required fields, and
78
79
  `reference()` values pointing at no entry.
79
80
 
81
+ It then parses the project's own `.astro`, `.ts` and `.tsx` — each `.astro` through
82
+ `@astrojs/compiler` and then the emitted TypeScript, which is the same two steps a
83
+ build takes before it renders anything. That catches the syntax error that kills a
84
+ build in `Building static entrypoints`, and reports it at its line in the `.astro`
85
+ source rather than in generated code. It is a syntax check, not a type check: a
86
+ wrong prop type still needs `astro check` or a build.
87
+
80
88
  Use it instead of a full build when you only need to know whether the content is
81
89
  still valid: `astro build` validates the same things but costs the whole render
82
90
  and stops at the first bad entry, while this reports every problem in one pass —