MCPcopy Index your code
hub / github.com/commitizen/cz-cli / getNearestProjectRootDirectory

Function getNearestProjectRootDirectory

src/commitizen/adapter.js:105–107  ·  view source on GitHub ↗

* Gets the nearest project root directory

(repoPath, options)

Source from the content-addressed store, hash-verified

103 * Gets the nearest project root directory
104 */
105function getNearestProjectRootDirectory (repoPath, options) {
106 return path.join(repoPath, getNearestNodeModulesDirectory(options), '/../');
107}
108
109/**
110 * Gets a map of arguments where the value is the corresponding (to passed package manager) string

Callers 1

addPathToAdapterConfigFunction · 0.85

Calls 1

Tested by

no test coverage detected