chore: harden release checks and package coverage
This commit is contained in:
@@ -2,10 +2,15 @@ import { existsSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
|
||||
import console from "node:console";
|
||||
import { dirname, join, relative, resolve } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { createRequire } from "node:module";
|
||||
import process from "node:process";
|
||||
import ts from "typescript";
|
||||
|
||||
const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const require = createRequire(import.meta.url);
|
||||
// TypeScript 7's root package is the native CLI and no longer exposes the
|
||||
// legacy compiler API. Public API extraction intentionally uses the compiler
|
||||
// version embedded by @wrnexus/typecheck.
|
||||
const ts = require(join(root, "packages", "typecheck", "node_modules", "typescript"));
|
||||
const baselinePath = join(root, "docs", "public-api-0.8.json");
|
||||
|
||||
function flattenTargets(value) {
|
||||
|
||||
Reference in New Issue
Block a user