mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-28 20:23:56 +00:00
build: migrate build system to Vite and test runner to Vitest & Remove
depracated husky usage - Replace Webpack with Vite for faster client bundling and HMR. - Migrate tests from Jest to Vitest and update configuration. - Update Web Worker instantiation to standard ESM syntax. - Implement Env utility in `src/core` for safe, hybrid environment variable access (Vite vs Node). - Refactor configuration loaders to remove direct `process.env` dependencies in shared code. - Update TypeScript environment definitions and project scripts for the new toolchain. - Remove the [depracated usage of the husky](https://github.com/typicode/husky/releases/tag/v9.0.1). build(vite): implement robust git commit resolution with fallback
This commit is contained in:
+9
-5
@@ -3,15 +3,16 @@
|
||||
"compilerOptions": {
|
||||
// Language and Environment
|
||||
"target": "ES2020",
|
||||
|
||||
// Modules
|
||||
"module": "ESNext",
|
||||
"rootDir": ".",
|
||||
"moduleResolution": "node",
|
||||
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"resources/*": ["resources/*"]
|
||||
},
|
||||
// Emit
|
||||
"sourceMap": true,
|
||||
|
||||
// Type Checking
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"allowUnusedLabels": false,
|
||||
@@ -21,7 +22,9 @@
|
||||
"resolveJsonModule": true,
|
||||
"strictNullChecks": true,
|
||||
"useDefineForClassFields": false,
|
||||
"strictPropertyInitialization": false
|
||||
"strictPropertyInitialization": false,
|
||||
"skipLibCheck": true,
|
||||
"types": ["vitest/globals", "node"]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*",
|
||||
@@ -29,7 +32,8 @@
|
||||
"proprietary/**/*",
|
||||
"generated/**/*",
|
||||
"tests/**/*",
|
||||
"src/scripts"
|
||||
"src/scripts",
|
||||
"vite.config.ts"
|
||||
],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user