prompt-cli does not work with custom config file paths
See original GitHub issueFollowing #100, there is no way to run prompt-cli
with a specific config file path. It just assumes the default which is commitlint.config.js
under the repository’s root.
Expected Behavior
Either:
npm run commit --config </path/to/config.js>
COMMITLINT_CONFIG=/path/to/config.js npm run commit
{ config: { '@commitlint/prompt-cli': { config: '/path/to/config.js' } } }
in package.json
Current Behavior
prompt-cli
runs with no customizations in place (no type/scope enums loaded etc.)
Affected packages
- cli
- core
- prompt
- config-angular
Your Environment
Executable | Version |
---|---|
commitlint --version |
6.2.0 |
git --version |
2.17.0 |
node --version |
8.9.0 |
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Nginx custom config file setting doesn't work when firing up ...
I think somewhere in your custom nginx config file exists following line: include mime.types;. Try to add full path to this file (which...
Read more >The basics - Black 22.12.0 documentation
Foundational knowledge on using and configuring Black. Black is a well-behaved Unix-style command-line tool: it does nothing if it finds no sources to ......
Read more >Configuration and credential file settings - AWS Documentation
You can specify a non-default location for the files by setting the ... Run this command to quickly set and view your credentials,...
Read more >command prompt button
Click Next in the Restore system files and settings window. ; Ctrl + V (or ... Problem is the command prompt (as well...
Read more >Changelog for Zstandard 1.4.7 - ABI laboratory
... (issue not accessible from cli) build: fix cmake script when using path with ... a list of files to operate upon from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Welcome! Yeah, please do. You ask in the chat as well if you want: https://devtoolscommunity.herokuapp.com
Hii @escapedcat
Thank you for your input and I agree with you (less additional parameter checks
===
less room for errors in my view).I’ve forked the repo, had a look around and from what I can see I don’t think it’s too complicated to implement. If I have any questions I’ll post them here.