Skip to content

Commit 3a17f6a

Browse files
byCedricmarionebl
authored andcommitted
chore(lint): update package settings for typescript
1 parent 49edf82 commit 3a17f6a

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

@commitlint/lint/package.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,13 @@
33
"version": "8.3.5",
44
"description": "Lint a string against commitlint rules",
55
"main": "lib/index.js",
6+
"types": "lib/index.d.ts",
67
"files": [
78
"lib/"
89
],
910
"scripts": {
10-
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
1111
"deps": "dep-check",
12-
"pkg": "pkg-check --skip-import",
13-
"start": "yarn run watch",
14-
"watch": "babel src --out-dir lib --watch --source-maps"
15-
},
16-
"babel": {
17-
"presets": [
18-
"babel-preset-commitlint"
19-
]
12+
"pkg": "pkg-check --skip-import"
2013
},
2114
"engines": {
2215
"node": ">=4"

@commitlint/lint/tsconfig.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"extends": "../../tsconfig.shared.json",
3+
"compilerOptions": {
4+
"composite": true,
5+
"rootDir": "./src",
6+
"outDir": "./lib"
7+
},
8+
"include": [
9+
"./src"
10+
],
11+
"exclude": [
12+
"./src/**/*.test.ts",
13+
"./lib/**/*"
14+
]
15+
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
{ "path": "@commitlint/resolve-extends" },
1515
{ "path": "@commitlint/to-lines" },
1616
{ "path": "@commitlint/top-level" },
17-
{ "path": "@commitlint/rules" }
17+
{ "path": "@commitlint/rules" },
18+
{ "path": "@commitlint/lint" }
1819
]
1920
}

0 commit comments

Comments
 (0)