/** * Must be imported before any other repo imports so Host Node matches * brittle-node / test:booter:shell (bare-type, bare-dns, require.addon, …). */ import { createRequire } from 'node:module' import path from 'node:path' import { fileURLToPath } from 'node:url' const dir = path.dirname(fileURLToPath(import.meta.url)) createRequire(import.meta.url)( path.join(dir, '../packages/bare-os-booter/scripts/bare-node-test-shim.cjs') )