Skip to content

Commit dabec75

Browse files
committed
Add type check script
1 parent 9da6aad commit dabec75

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

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

0 commit comments

Comments
 (0)