MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / resolveModulePath

Function resolveModulePath

@commitlint/cli/src/cli.ts:517–523  ·  view source on GitHub ↗
(moduleName: string, flags: CliFlags)

Source from the content-addressed store, hash-verified

515}
516
517function resolveModulePath(moduleName: string, flags: CliFlags): string | undefined {
518 return (
519 resolveFromSilent(moduleName, __dirname) ||
520 resolveFromSilent(moduleName, flags.cwd) ||
521 resolveGlobalSilent(moduleName)
522 );
523}
524
525function getSeed(flags: CliFlags): UserConfig {
526 const n = (flags.extends || []).filter((i): i is string => typeof i === "string");

Callers 2

resolveDefaultConfigFunction · 0.85
loadFormatterFunction · 0.85

Calls 2

resolveFromSilentFunction · 0.85
resolveGlobalSilentFunction · 0.85

Tested by

no test coverage detected