diff --git a/src/commitizen/adapter.js b/src/commitizen/adapter.js index 7d7eff70..c93c5803 100644 --- a/src/commitizen/adapter.js +++ b/src/commitizen/adapter.js @@ -131,7 +131,7 @@ function resolveAdapterPath(inboundAdapterPath) { // Resolve from process.cwd() if inboundAdapterPath is a path let absoluteAdapterPath = isPath ? - path.resolve(process.cwd(), inboundAdapterPath) : + path.resolve(getNearestProjectRootDirectory(), inboundAdapterPath) : inboundAdapterPath; try {