"use strict";exports.__esModule=true;exports.verifyAndLint=verifyAndLint;var _chalk=_interopRequireDefault(require("chalk"));var _jestWorker=require("jest-worker");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}async function verifyAndLint(dir,pagesDir,numWorkers,enableWorkerThreads){try{const lintWorkers=new _jestWorker.Worker(require.resolve('./eslint/runLintCheck'),{numWorkers,enableWorkerThreads});lintWorkers.getStdout().pipe(process.stdout);lintWorkers.getStderr().pipe(process.stderr);const lintResults=await lintWorkers.runLintCheck(dir,pagesDir);if(lintResults){console.log(lintResults);}lintWorkers.end();}catch(err){if(err.type==='CompileError'){console.error(_chalk.default.red('\nFailed to compile.'));console.error(err.message);process.exit(1);}else if(err.type==='FatalError'){console.error(err.message);process.exit(1);}throw err;}}
//# sourceMappingURL=verifyAndLint.js.map