🏎️ 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
This commit is contained in:
Danny Avila 2026-02-13 14:25:26 -05:00 committed by GitHub
parent ccbf9dc093
commit e50f59062f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 377 additions and 0 deletions

3
.gitignore vendored
View file

@ -30,6 +30,9 @@ coverage
config/translations/stores/*
client/src/localization/languages/*_missing_keys.json
# Turborepo
.turbo
# Compiled Dirs (http://nodejs.org/api/addons.html)
build/
dist/