- Notifications
You must be signed in to change notification settings - Fork 950
Open
Labels
Description
currently cli argument --cwd is not tested, we should add some tests to ensure that its working.
Affected packages
- all
Context
After this refactoring to typescript there can be some side effect of how cwd is handled in some of modules, i found it while doing refactoring of cli in #978
commitlint/@commitlint/cli/src/cli.ts
Lines 129 to 136 in 712f4cd
| const input = await (fromStdin | |
| ? stdin() | |
| : read({ | |
| to: flags.to, | |
| from: flags.from, | |
| edit: flags.edit, | |
| cwd: flags.cwd | |
| })); |
commitlint/@commitlint/cli/src/cli.js
Lines 131 to 133 in c7cfe37
| const range = pick(flags, 'edit', 'from', 'to'); | |
| const input = await (fromStdin ? stdin() : read(range, {cwd: flags.cwd})); |