fix(cli): move api-block assertions into a real .ts file
skipLibCheck exempts .d.ts contents from being checked, so assertions written inside wrnexus.generated.d.ts were never evaluated by tsc. Emit them into wrnexus.generated.api-checks.ts instead, referencing the WRNexusGenerated namespace's helper types (which stay in the .d.ts). Track the new generated file in check:generated-types. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a2698fb51a
commit
785e8a65bd
5 files changed
+45
-9
No files matched your search
@@ -8,6 +8,7 @@ const scratchParent = join(root, ".wrnexus-type-check");
|
||||
const scratch = mkdtempSync(`${scratchParent}-`);
|
||||
const generated = [
|
||||
join("app", "types", "wrnexus.generated.d.ts"),
|
||||
join("app", "types", "wrnexus.generated.api-checks.ts"),
|
||||
join("app", "types", "wrnexus.plugins.generated.d.ts"),
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user