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