mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-10-30 17:27:09 +00:00
* 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
15 lines
415 B
JavaScript
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");
|
|
}
|