Files
cypress/packages/rewriter/script/worker-shim.js
2022-12-02 22:13:06 -06:00

11 lines
347 B
JavaScript

// Moved outside of /lib so we can rm -rf "lib/**/*.js" without deleting this
if (process.env.CYPRESS_INTERNAL_ENV === 'production') {
throw new Error(`${__filename} should only run outside of prod`)
}
const { hookRequire } = require('@packages/server/hook-require')
hookRequire({ forceTypeScript: true })
require('../lib/threads/worker.ts')