Skip to content

Commit df280b7

Browse files
committed
fix(commitlint): use process.cwd() as fallback for process.env.PWD to ensure compatibility across platforms
The commitlint module now uses process.cwd() as a fallback when process.env.PWD is not available. This ensures compatibility across different platforms and environments when determining the path to the node_modules directory.
1 parent 67dff60 commit df280b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/commitlint/pwd-commitlint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'path';
22

33
const nodeModulesPath = path.join(
4-
process.env.PWD as string,
4+
process.env.PWD || process.cwd(),
55
'node_modules',
66
'@commitlint',
77
'load'

0 commit comments

Comments
 (0)