File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed
Expand file tree Collapse file tree 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 11const path = require ( 'path' ) ;
22
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 88 " !*.test.js*"
99 ],
1010 "bin" : {
11- "commitlint" : " ./lib/ cli.js"
11+ "commitlint" : " ./cli-bin .js"
1212 },
1313 "scripts" : {
1414 "deps" : " dep-check" ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import execa from 'execa';
44import merge from 'lodash/merge' ;
55import fs from 'fs-extra' ;
66
7- const bin = require . resolve ( '../lib/ cli.js' ) ;
7+ const bin = require . resolve ( '../cli-bin .js' ) ;
88
99interface TestOptions {
1010 cwd : string ;
Original file line number Diff line number Diff line change 1- #!/usr/bin/env node
21import load from '@commitlint/load' ;
32import lint from '@commitlint/lint' ;
43import read from '@commitlint/read' ;
@@ -63,7 +62,8 @@ const cli = yargs
6362 } ,
6463 from : {
6564 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' ,
6767 type : 'string'
6868 } ,
6969 format : {
@@ -73,7 +73,8 @@ const cli = yargs
7373 } ,
7474 'parser-preset' : {
7575 alias : 'p' ,
76- description : 'configuration preset to use for conventional-commits-parser' ,
76+ description :
77+ 'configuration preset to use for conventional-commits-parser' ,
7778 type : 'string'
7879 } ,
7980 quiet : {
@@ -84,7 +85,8 @@ const cli = yargs
8485 } ,
8586 to : {
8687 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' ,
8890 type : 'string'
8991 } ,
9092 version : {
@@ -110,7 +112,7 @@ main(cli).catch(err => {
110112 process . exit ( 1 ) ;
111113 }
112114 throw err ;
113- } , 0 )
115+ } , 0 ) ;
114116} ) ;
115117
116118async function main ( options : CliFlags ) {
You can’t perform that action at this time.
0 commit comments