Skip to content

Commit 009cf99

Browse files
committed
chore: Distribute tsconfig files
1 parent ff80364 commit 009cf99

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ buck-out/
4949
.vscode
5050

5151
# Tests
52-
coverage
52+
coverage/

__tests__/tsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "../tsconfig",
3+
"compilerOptions": {
4+
"typeRoots": ["../node_modules/@types", "../lib/types"],
5+
},
6+
"include": ["./**/*"]
7+
}

coverage/coverage-final.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

declaration.tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"emitDeclarationOnly": true,
77
"outDir": "./lib/types"
88
},
9-
"exclude": ["__tests__", "__mocks__"]
9+
"include": ["src"]
1010
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"scripts": {
99
"ci": "yarn install --frozen-lockfile && yarn lint && yarn declaration:build && yarn checkjs && yarn test",
1010
"lint": "eslint .",
11-
"checkjs": "tsc",
11+
"checkjs": "tsc && tsc -p ./__tests__/tsconfig.json",
1212
"test": "jest ./__tests__",
1313
"declaration:build": "tsc -p ./declaration.tsconfig.json",
1414
"prepublishOnly": "yarn declaration:build && yarn checkjs"

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"skipLibCheck": true,
88
"typeRoots": ["@types/events"]
99
},
10-
"include": ["src/", "__tests__/", "__mocks__/"],
10+
"include": ["src", "lib"]
1111
}

0 commit comments

Comments
 (0)