We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a2808e commit 462c5e7Copy full SHA for 462c5e7
src/scripts/commit.js
@@ -1,10 +1,17 @@
1
+const fs = require('fs')
2
const path = require('path')
3
const {bootstrap} = require('commitizen/dist/cli/git-cz')
4
+const {fromRoot} = require('../utils')
5
6
const here = p => path.join(__dirname, p)
7
8
+const cliPath = [
9
+ here('../../node_modules/commitizen'),
10
+ fromRoot('./node_modules/commitizen'),
11
+].find(fs.existsSync)
12
+
13
bootstrap({
- cliPath: here('../../node_modules/commitizen'),
14
+ cliPath,
15
config: {
16
path: '@commitlint/prompt',
17
},
0 commit comments