Fail on uncovered build-gap packages

This commit is contained in:
Devin Foley committed 2026-05-03 20:08:12 -07:00
1 parent ed012ac6f3
commit ec1e665d59
1 file changed
+4 -3
+4 -3
View File
@@ -68,9 +68,10 @@ const buildGapCandidates = workspacePackages
const packagesMissingTypecheck = buildGapCandidates.filter(
({ pkg }) => typeof pkg.scripts?.typecheck !== "string",
);
for (const workspacePkg of packagesMissingTypecheck) {
console.warn(
`[typecheck:build-gaps] warning: ${workspacePkg.name} has a build script without tsc but no explicit typecheck script.`,
if (packagesMissingTypecheck.length > 0) {
const missingNames = packagesMissingTypecheck.map((workspacePkg) => workspacePkg.name).join(", ");
fail(
`Workspace packages with build scripts that skip tsc must define a typecheck script. Missing: ${missingNames}`,
);
}
const buildGapPackages = buildGapCandidates.filter(