Skip to content

Commit

Permalink
Fix ts compilation
Browse files Browse the repository at this point in the history
- had to enable "skipLibCheck", might want to revisit
  • Loading branch information
solomonhawk committed Sep 2, 2022
1 parent 1a30941 commit 17b5a2b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && tsc --noEmit && astro build",
"build": "astro check && tsc && astro build",
"preview": "astro preview"
},
"devDependencies": {
Expand Down
12 changes: 10 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "node",
"jsx": "react-jsx",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"skipLibCheck": true,
"types": [
"vite/client",
"astro/client"
Expand All @@ -21,6 +23,12 @@
"noFallthroughCasesInSwitch": true,
"allowSyntheticDefaultImports": true,
"strictNullChecks": true,
"noUncheckedIndexedAccess": true
}
"noUncheckedIndexedAccess": true,
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
]
}

0 comments on commit 17b5a2b

Please sign in to comment.