-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(adapter): support npm module names in commitizen.path config
This change contains * A refactoring of the `adapter.resolveAdapterPath` method * An additional test case for the `adapter.resolveAdapterPath` method * Updated documentation to reflect the changes * Remove unneeded resolving of param passed to getPrompter in git-cz strategy * Use find-root package to determine position of package.json to determine the path more reliable in complex npm situations Instead of doing `fs.lsStatSync` calls against `commitizen.path` `resolveAdapterPath` relies on `require.resolve`, which allows for support of npm module names in `commitizen.path` while maintaining backwards compatibility with the former implementation and documentation. Closes #79
- Loading branch information
Showing
5 changed files
with
54 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters