Modernize and fix website build tooling deps and utilize JS type checking (#3348)

* Modernize and fix website build tooling deps and utilize JS type checking

* Upgrade to the latest Node.js
This commit is contained in:
Keavon Chambers
2025-11-06 16:30:35 -08:00
committed by GitHub
parent 96d73a8570
commit 6b315c3b68
18 changed files with 2036 additions and 981 deletions

45
website/tsconfig.json Normal file
View File

@@ -0,0 +1,45 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "node",
"strict": true,
"allowJs": true,
"checkJs": true,
"noEmit": true,
"importHelpers": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"verbatimModuleSyntax": true,
"sourceMap": true,
"types": ["node"],
"baseUrl": ".",
"paths": {
"/*": ["./*"]
},
"lib": ["ESNext", "DOM", "DOM.Iterable", "ScriptHost"]
},
"include": [
// TypeScript and JSDoc-typed JavaScript files
"**/*.ts",
"**/*.js",
// Also include build scripts, which aren't included above because of the dot-prefixed directory
".build-scripts/**/*.ts",
".build-scripts/**/*.js"
],
"exclude": [
// Ignore generated directories
"node_modules",
"public",
// Ignore vendored code
"static/*.js"
],
"ts-node": {
"compilerOptions": {
"useDefineForClassFields": false,
"noImplicitOverride": true
}
}
}