mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-05 14:52:04 +00:00
c5f6d9116e
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
10 lines
272 B
Bash
10 lines
272 B
Bash
#!/usr/bin/env sh
|
|
# Deprecated with husky v9
|
|
#. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
# Add PATH setup to ensure npx is found
|
|
export PATH="/usr/local/bin:$HOME/.npm-global/bin:$HOME/.nvm/versions/node/$(node -v)/bin:$PATH"
|
|
|
|
# Then run lint-staged if tests pass
|
|
npx lint-staged
|