Skip to content

Commit f9df083

Browse files
committed
Add Typescript 5.5.4 as dev dep, a barebones tsconfig.json, and a 'check-types' script to run Typescript and verify index.d.ts
1 parent 0fa5393 commit f9df083

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

package-lock.json

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@
3535
},
3636
"scripts": {
3737
"publint": "npx publint",
38+
"check-types": "tsc",
3839
"clean": "shx rm -rf sqlite-wasm",
3940
"build": "npm run clean && node bin/index.js",
4041
"start": "npx http-server --coop",
4142
"fix": "npx prettier . --write",
42-
"prepublishOnly": "npm run build && npm run fix && npm run publint",
43+
"prepublishOnly": "npm run build && npm run fix && npm run publint && npm run check-types",
4344
"deploy": "npm run prepare && git add . && git commit -am 'New release' && git push && npm publish --access public"
4445
},
4546
"repository": {
@@ -58,8 +59,9 @@
5859
"module-workers-polyfill": "^0.3.2",
5960
"node-fetch": "^3.3.2",
6061
"prettier": "^3.3.3",
61-
"publint": "^0.2.10",
6262
"prettier-plugin-jsdoc": "^1.3.0",
63-
"shx": "^0.3.4"
63+
"publint": "^0.2.10",
64+
"shx": "^0.3.4",
65+
"typescript": "^5.5.4"
6466
}
6567
}

tsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es2020",
4+
"noEmit": true,
5+
"strict": true
6+
}
7+
}

0 commit comments

Comments
 (0)