Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions @commitlint/core/index.js

This file was deleted.

4 changes: 3 additions & 1 deletion @commitlint/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"name": "@commitlint/core",
"version": "8.3.5",
"description": "Lint your commit messages",
"main": "lib/core.js",
"types": "lib/core.d.ts",
"files": [
"index.js"
"lib/"
],
"scripts": {
"deps": "dep-check",
Expand Down
11 changes: 11 additions & 0 deletions @commitlint/core/src/core.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import format from '@commitlint/format';
import load from '@commitlint/load';
import lint from '@commitlint/lint';
import read from '@commitlint/read';

export = {
format,
load,
lint,
read
};
10 changes: 10 additions & 0 deletions @commitlint/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"composite": true,
"rootDir": "./src",
"outDir": "./lib"
},
"include": ["./src/**/*.ts"],
"exclude": ["./src/**/*.test.ts", "./lib/**/*"]
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
{ "path": "@commitlint/read" },
{ "path": "@commitlint/rules" },
{ "path": "@commitlint/lint" },
{ "path": "@commitlint/core" },
]
}