Skip to content

Commit e5d5a83

Browse files
committed
build: add types to the build via checkJs
1 parent 90d5d3f commit e5d5a83

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"scripts": {
1414
"test": "node src test",
1515
"test:update": "node src test --updateSnapshot",
16-
"build": "node src build",
16+
"build": "run-p build:*",
17+
"build:source": "node src build",
18+
"build:types": "tsc -p src/",
1719
"lint": "node src lint",
1820
"format": "node src format",
1921
"validate": "node src validate",

src/tsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "./config/tsconfig.json",
3+
"include": ["./api"],
4+
"compilerOptions": {
5+
"allowJs": true,
6+
"checkJs": true,
7+
"declaration": true,
8+
"noEmit": false,
9+
"outDir": "../dist",
10+
"rootDir": "."
11+
}
12+
}

0 commit comments

Comments
 (0)