LibreChat/turbo.json
Danny Avila e50f59062f
🏎️ feat: Smart Reinstall with Turborepo Caching for Better DX (#11785)
* chore: Add Turborepo support and smart reinstall script

- Updated .gitignore to include Turborepo cache directory.
- Added Turbo as a dependency in package.json and package-lock.json.
- Introduced turbo.json configuration for build tasks.
- Created smart-reinstall.js script to optimize dependency installation and package builds using Turborepo caching.

* fix: Address PR review feedback for smart reinstall

  - Fix Windows compatibility in hasTurbo() by checking for .cmd/.ps1 shims
  - Remove Unix-specific shell syntax (> /dev/null 2>&1) from cache clearing
  - Split try/catch blocks so daemon stop failure doesn't block cache clear
  - Add actionable tips in error output pointing to --force and --verbose
2026-02-13 14:25:26 -05:00

33 lines
873 B
JSON

{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["package-lock.json"],
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": [
"src/**",
"!src/**/__tests__/**",
"!src/**/__mocks__/**",
"!src/**/*.test.*",
"!src/**/*.spec.*",
"scripts/**",
"rollup.config.js",
"server-rollup.config.js",
"tsconfig.json",
"tsconfig.build.json",
"vite.config.ts",
"index.html",
"postcss.config.*",
"tailwind.config.*",
"package.json"
],
"outputs": ["dist/**"]
},
"@librechat/data-schemas#build": {
"dependsOn": ["^build", "librechat-data-provider#build"]
},
"@librechat/api#build": {
"dependsOn": ["^build", "librechat-data-provider#build", "@librechat/data-schemas#build"]
}
}
}