Skip to content

Commit 439b54b

Browse files
committed
Switch to tsconfig
1 parent dabec75 commit 439b54b

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"clean": "rimraf dist",
5353
"prepublishOnly": "npm run build",
5454
"lint": "prettier --write \"src/**/*.js\" && eslint src",
55-
"typecheck": "tsc --noEmit --strict --jsx preserve --esModuleInterop --moduleResolution bundler --target es2022 src/index.d.ts src/factory.d.ts",
55+
"typecheck": "tsc",
5656
"test": "npm run lint && npm run typecheck && jest",
5757
"watch-test": "jest --watch",
5858
"watch": "tsup --watch"

tsconfig.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"include": ["src/**/*.d.ts"],
3+
"compilerOptions": {
4+
"noEmit": true,
5+
"strict": true,
6+
"jsx": "preserve",
7+
"esModuleInterop": true,
8+
"moduleResolution": "bundler",
9+
"target": "es2022"
10+
}
11+
}

0 commit comments

Comments
 (0)