diff --git a/package.json b/package.json index 9dcc6210..7c1650c1 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,8 @@ { - "dependencies": { - "@smogon/sprite-data": "", - "@smogon/sprite-root": "", - "@types/node": "^18.15.8" - }, "scripts": { "build": "tsc --build tsconfig-workspace.json" }, "devDependencies": { - "typescript": "^5.0.2" + "typescript": "~7.0.2" } } diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 4f486d4a..f2b045c2 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -2,3 +2,5 @@ packages: - 'tools/*' - 'lib/*' - "data/lib" +allowBuilds: + better-sqlite3: true diff --git a/tsconfig-base.json b/tsconfig-base.json index c831bfae..f7a72fe8 100644 --- a/tsconfig-base.json +++ b/tsconfig-base.json @@ -2,12 +2,18 @@ "compilerOptions": { "incremental": true, "target": "esnext", - "module": "esnext", - "jsx": "react", + "lib": ["es2025"], + "module": "nodenext", "strict": true, - "moduleResolution": "node", - "esModuleInterop": true, "isolatedModules": true, - "composite": true + "composite": true, + // Support cross-project goto/rename + "declarationMap": true, + "forceConsistentCasingInFileNames": true, + "outDir": "${configDir}/.cache", + "emitDeclarationOnly": true, + "noUncheckedIndexedAccess": true, + "verbatimModuleSyntax": true, + "allowImportingTsExtensions": true, } }