()
| 85083 | try { |
| 85084 | const resolvedPath = require.resolve(moduleName, { paths: [basePath] }); |
| 85085 | return resolvedPath; |
| 85086 | } catch { |
| 85087 | } |
| 85088 | } |
| 85089 | throw new Error(`Cannot find module ${moduleName}`); |
| 85090 | }; |
| 85091 | var getCommitLintModuleType = async () => { |
| 85092 | const packageFile = "@commitlint/load/package.json"; |
| 85093 | const packageJsonPath = findModulePath(packageFile); |
| 85094 | const packageJson = JSON.parse(await import_promises.default.readFile(packageJsonPath, "utf8")); |
| 85095 | if (!packageJson) { |
| 85096 | throw new Error(`Failed to parse ${packageFile}`); |
no test coverage detected
searching dependent graphs…