chore: harden release checks and package coverage
This commit is contained in:
@@ -19,7 +19,15 @@ function sha256(value) {
|
||||
}
|
||||
|
||||
function loadTypeScript() {
|
||||
const candidates = [process.env.TYPESCRIPT_PATH, "typescript"].filter(Boolean);
|
||||
// TypeScript 7's root package is the native CLI and no longer exposes the
|
||||
// legacy compiler API used by the embedded editor compiler. Keep that API
|
||||
// isolated behind @wrnexus/typecheck's explicit TypeScript 6 dependency
|
||||
// while the workspace itself type-checks with TypeScript 7.
|
||||
const candidates = [
|
||||
process.env.TYPESCRIPT_PATH,
|
||||
join(root, "packages", "typecheck", "node_modules", "typescript"),
|
||||
"typescript",
|
||||
].filter(Boolean);
|
||||
for (const candidate of candidates) {
|
||||
try {
|
||||
return require(candidate);
|
||||
|
||||
Reference in New Issue
Block a user