Skip to content

Commit 8d35406

Browse files
committed
feat: alias @commitlint/cli to commitlint
1 parent eb99cff commit 8d35406

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

@packages/commitlint/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# commitlint
2+
3+
> Mirror of [@commitlint/cli](../../@commitlint/cli)

@packages/commitlint/cli.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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);

@packages/commitlint/package.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
"email": "[email protected]"
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+
}

0 commit comments

Comments
 (0)