Files
hyperframes/packages/cli/bin/hyperframes.mjs
T
Miguel Ángel 7917f7fe05 perf(cli): check skips contrast screenshots it can compute from styles (#5871)
* perf(cli): check reads a solid text backdrop from styles instead of a screenshot

* perf(cli): check starts Chrome while lint and bundling run

* perf(cli): the CLI reuses compiled bytecode between runs

* test(cli): browser shutdown tests stop their Chrome when a case fails
2026-10-19 16:15:24 +00:00

15 lines
415 B
JavaScript

#!/usr/bin/env node
import module from "node:module";
import { runtimeVersionError } from "../dist/runtimeVersion.js";
const error = runtimeVersionError(process.versions.node);
if (error) {
console.error(error);
process.exitCode = 1;
} else {
// Reuses V8 bytecode across runs (os.tmpdir()/node-compile-cache); Node 22.0 has no such API.
module.enableCompileCache?.();
await import("../dist/cli.js");
}