You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a M1 MacBook Pro running macOS 15.3
1. Run `bun install -g @commitlint/{cli,config-conventional}`
2. Run `echo "module.exports = {extends: ['@commitlint/config-conventional']};">~/.commitlintrc.js`
3. Run `echo 'should fail'| commitlint --config ~/.commitlintrc.js`
Current Behavior
file:///Users/parzv/.bun/install/global/node_modules/@commitlint/cli/lib/cli.js:132
throw err;
^
Error: Cannot find module "@commitlint/config-conventional" from "/Users/parzv"
at resolveId (file:///Users/parzv/.bun/install/global/node_modules/@commitlint/resolve-extends/lib/index.js:148:17)
at resolveConfig (file:///Users/parzv/.bun/install/global/node_modules/@commitlint/resolve-extends/lib/index.js:132:20)
at file:///Users/parzv/.bun/install/global/node_modules/@commitlint/resolve-extends/lib/index.js:93:26
at Array.reduce (<anonymous>)
at loadExtends (file:///Users/parzv/.bun/install/global/node_modules/@commitlint/resolve-extends/lib/index.js:92:22)
at resolveExtends (file:///Users/parzv/.bun/install/global/node_modules/@commitlint/resolve-extends/lib/index.js:76:28)
at load (file:///Users/parzv/.bun/install/global/node_modules/@commitlint/load/lib/load.js:47:28)
at async main (file:///Users/parzv/.bun/install/global/node_modules/@commitlint/cli/lib/cli.js:200:20) {
code: 'MODULE_NOT_FOUND'
}
Node.js v23.7.0
Expected Behavior
Should output the linters analysis on my message
Affected packages
cli
core
prompt
config-angular
Possible Solution
No response
Context
I was interested in using bun for JS development and tried to install the cli utility to run globally through bun.
I want to note, that I accidentally discovered that apparently if I install @commitlint/config-conventional through npm, it seems to work (with commitlint installed from bun)
I assume this is not intended behavior and it would be best for commitlint and config-conventional to work from just installing them through bun like I detailed above in my issue.
Steps to Reproduce
Current Behavior
Expected Behavior
Should output the linters analysis on my message
Affected packages
Possible Solution
No response
Context
I was interested in using bun for JS development and tried to install the cli utility to run globally through bun.
commitlint --version
@commitlint/[email protected]
git --version
git version 2.39.5 (Apple Git-154)
node --version
v23.7.0
The text was updated successfully, but these errors were encountered: