@nuasite/cli 0.50.1 → 0.52.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 +36 -1
- package/dist/index.js +2967 -2689
- package/dist/types/check.d.ts +18 -0
- package/dist/types/check.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/src/check.ts +80 -0
- package/src/index.ts +12 -0
- package/src/tsconfig.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface CheckOptions {
|
|
2
|
+
cwd: string;
|
|
3
|
+
json: boolean;
|
|
4
|
+
/** Treat warnings as failures too. Off by default: a dangling reference builds fine. */
|
|
5
|
+
strict: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The Astro apps to check, relative to `cwd`.
|
|
9
|
+
*
|
|
10
|
+
* Running this at a monorepo root has to work: that is where an agent's workspace and a
|
|
11
|
+
* developer's shell both start, and `bun run build` there builds something else entirely
|
|
12
|
+
* (admin, api, worker). Every `packages/*` app is checked, not just the first — a repo with
|
|
13
|
+
* two sites must not have one of them silently skipped.
|
|
14
|
+
*/
|
|
15
|
+
export declare function astroRoots(cwd: string): string[];
|
|
16
|
+
/** Validate the content collections and return the process exit code. */
|
|
17
|
+
export declare function check(options: CheckOptions): Promise<number>;
|
|
18
|
+
//# sourceMappingURL=check.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/check.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,OAAO,CAAA;IACb,wFAAwF;IACxF,MAAM,EAAE,OAAO,CAAA;CACf;AAMD;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAYhD;AAWD,yEAAyE;AACzE,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAgClE"}
|