Skip to content

Commit 1601ab1

Browse files
committed
add typecheck
1 parent 31cf956 commit 1601ab1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

worker/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"dev": "wrangler dev",
1212
"start": "wrangler dev",
1313
"cf-typegen": "wrangler types",
14+
"typecheck": "npx tsc --noEmit",
1415
"reset-secret": "./reset-secret.sh"
1516
},
1617
"devDependencies": {

worker/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"types": ["./worker-configuration.d.ts"],
1818
/* Enable importing .json files */
1919
"resolveJsonModule": true,
20+
"allowImportingTsExtensions": true,
2021

2122
/* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */
2223
"allowJs": true,

0 commit comments

Comments
 (0)