fix: honor project typecheck in canonical checks
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@wrnexus/cli",
|
||||
"version": "0.8.49",
|
||||
"version": "0.8.50",
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
"exports": {
|
||||
|
||||
@@ -21,7 +21,8 @@ export async function runCheck(appRoot: string): Promise<void> {
|
||||
scripts?: Record<string, string>;
|
||||
};
|
||||
await runBuild(root);
|
||||
if (!(await runTypecheck(root))) throw new Error("WRN-CHECK: application typecheck failed");
|
||||
if (manifest.scripts?.typecheck) await runScript(root, "typecheck");
|
||||
else if (!(await runTypecheck(root))) throw new Error("WRN-CHECK: application typecheck failed");
|
||||
for (const name of ["lint", "test", "format:check"] as const) {
|
||||
if (manifest.scripts?.[name]) await runScript(root, name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user