File tree Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ # commitlint
2
+
3
+ > Mirror of [ @commitlint/cli ] ( ../../@commitlint/cli )
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+ const path = require ( 'path' ) ;
3
+ const resolvePkg = require ( 'resolve-pkg' ) ;
4
+ const readPkg = require ( 'read-pkg' ) ;
5
+
6
+ const pkgDir = resolvePkg ( '@commitlint/cli' , { cwd : __dirname } ) ;
7
+ const manifest = readPkg . sync ( path . join ( pkgDir , 'package.json' ) ) ;
8
+ const bin = path . join ( pkgDir , manifest . bin . commitlint ) ;
9
+
10
+ require ( bin ) ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " commitlint" ,
3
+ "version" : " 4.1.1" ,
4
+ "description" : " Lint your commit messages" ,
5
+ "bin" : {
6
+ "commitlint" : " cli.js"
7
+ },
8
+ "xo" : false ,
9
+ "engines" : {
10
+ "node" : " >=4"
11
+ },
12
+ "repository" : {
13
+ "type" : " git" ,
14
+ "url" : " https://github.com/marionebl/commitlint.git"
15
+ },
16
+ "bugs" : {
17
+ "url" : " https://github.com/marionebl/commitlint/issues"
18
+ },
19
+ "homepage" : " https://github.com/marionebl/commitlint#readme" ,
20
+ "keywords" : [
21
+ " conventional-changelog" ,
22
+ " commitlint" ,
23
+ " cli"
24
+ ],
25
+ "author" : {
26
+ "name" : " Mario Nebl" ,
27
+
28
+ },
29
+ "license" : " MIT" ,
30
+ "dependencies" : {
31
+ "@commitlint/cli" : " ^4.1.1" ,
32
+ "read-pkg" : " ^2.0.0" ,
33
+ "resolve-pkg" : " ^1.0.0"
34
+ }
35
+ }
You can’t perform that action at this time.
0 commit comments