Skip to content

Commit 154b945

Browse files
committed
build: check test files
Remove __tests__ directory from ignore files in tsconfig so that IDEs have proper type completion, and then add a negative glob for __tests__ folders to package.json files array.
1 parent 11bb169 commit 154b945

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"main": "dist/index.js",
1414
"types": "dist/index.d.ts",
1515
"files": [
16-
"dist"
16+
"dist",
17+
"!**/__tests__/**/*"
1718
],
1819
"scripts": {
1920
"lint": "tslint -p .",

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
},
1111
"exclude": [
1212
"node_modules",
13-
"dist",
14-
"**/__tests__/*"
13+
"dist"
1514
]
1615
}

0 commit comments

Comments
 (0)