hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
19 lines (13 loc) • 725 B
text/typescript
import { exitIfNodeVersionNotSupported } from "./internal/cli/node-version.js";
// We enable the sourcemaps before loading main, so that everything except this
// small file is loaded with sourcemaps enabled.
process.setSourceMapsEnabled(true);
// We check the Node.js version before loading main, so that if there is some
// unsupported js syntax or Node API elsewhere, we get to exit with a clear
// error before crashing.
exitIfNodeVersionNotSupported();
// eslint-disable-next-line no-restricted-syntax -- Allow top-level await here
const { main } = await import("./internal/cli/hhu.js");
// eslint-disable-next-line no-restricted-syntax -- We do want TLA here
await main(process.argv.slice(2));