File tree 5 files changed +12
-8
lines changed
5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+ require ( './lib/cli.js' ) ;
Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' ) ;
2
2
3
- module . exports = path . join ( __dirname , 'lib/ cli.js' ) ;
3
+ module . exports = path . join ( __dirname , 'cli-bin .js' ) ;
Original file line number Diff line number Diff line change 8
8
" !*.test.js*"
9
9
],
10
10
"bin" : {
11
- "commitlint" : " ./lib/ cli.js"
11
+ "commitlint" : " ./cli-bin .js"
12
12
},
13
13
"scripts" : {
14
14
"deps" : " dep-check" ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import execa from 'execa';
4
4
import merge from 'lodash/merge' ;
5
5
import fs from 'fs-extra' ;
6
6
7
- const bin = require . resolve ( '../lib/ cli.js' ) ;
7
+ const bin = require . resolve ( '../cli-bin .js' ) ;
8
8
9
9
interface TestOptions {
10
10
cwd : string ;
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env node
2
1
import load from '@commitlint/load' ;
3
2
import lint from '@commitlint/lint' ;
4
3
import read from '@commitlint/read' ;
@@ -63,7 +62,8 @@ const cli = yargs
63
62
} ,
64
63
from : {
65
64
alias : 'f' ,
66
- description : 'lower end of the commit range to lint; applies if edit=false' ,
65
+ description :
66
+ 'lower end of the commit range to lint; applies if edit=false' ,
67
67
type : 'string'
68
68
} ,
69
69
format : {
@@ -73,7 +73,8 @@ const cli = yargs
73
73
} ,
74
74
'parser-preset' : {
75
75
alias : 'p' ,
76
- description : 'configuration preset to use for conventional-commits-parser' ,
76
+ description :
77
+ 'configuration preset to use for conventional-commits-parser' ,
77
78
type : 'string'
78
79
} ,
79
80
quiet : {
@@ -84,7 +85,8 @@ const cli = yargs
84
85
} ,
85
86
to : {
86
87
alias : 't' ,
87
- description : 'upper end of the commit range to lint; applies if edit=false' ,
88
+ description :
89
+ 'upper end of the commit range to lint; applies if edit=false' ,
88
90
type : 'string'
89
91
} ,
90
92
version : {
@@ -110,7 +112,7 @@ main(cli).catch(err => {
110
112
process . exit ( 1 ) ;
111
113
}
112
114
throw err ;
113
- } , 0 )
115
+ } , 0 ) ;
114
116
} ) ;
115
117
116
118
async function main ( options : CliFlags ) {
You can’t perform that action at this time.
0 commit comments