Skip to content

Commit 550b519

Browse files
committed
Adding a build ts-config to be able to lint __tests__ files
1 parent f7de943 commit 550b519

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"scripts": {
3636
"prepublishOnly": "npm run build",
3737
"clean": "rimraf dist",
38-
"build": "tsc",
38+
"build": "tsc --project tsconfig.build.json",
3939
"test": "jest tests",
4040
"test:watch": "npm test --watch",
4141
"test:coverage": "npm test -- --coverage",

tsconfig.build.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": [
4+
"./src/index.ts"
5+
]
6+
}

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
"outDir": "./dist",
1111
"module": "esnext"
1212
},
13-
"include": ["./src/index.ts"],
14-
"exclude": ["node_modules/", "./src/__tests__"]
13+
"include": ["src"],
1514
}

0 commit comments

Comments
 (0)