mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-30 21:49:18 +01:00
Fail on uncovered build-gap packages
This commit is contained in:
1 parent
ed012ac6f3
commit
ec1e665d59
1 file changed
+4
-3
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user