unsloth/studio
Daniel Han 2b1e53d1bd Fix frontend rebuild detection and npm dependency issues
Addresses reviewer feedback on the frontend caching logic:

1. setup.sh: Fix broken find command that caused exit under pipefail.
   The piped `find | xargs find -newer` had paths after the expression
   which GNU find rejects. Replaced with a simpler `find -maxdepth 1
   -type f -newer dist/` that checks ALL top-level files (catches
   index.html, bun.lock, etc. that the extension allowlist missed).

2. setup.sh: Guard oxc-validator npm install behind `command -v npm`
   check. When the frontend build is skipped (dist/ is cached), Node
   bootstrap is also skipped, so npm may not be available.

3. setup.ps1: Replace Get-ChildItem -Include with explicit path
   probing for src/ and public/. PowerShell's -Include without a
   trailing wildcard silently returns nothing, so src/public changes
   were never detected. Also check ALL top-level files instead of
   just .json/.ts/.js/.mjs extensions.
2026-03-18 07:01:45 +00:00
..
backend Trim ~255 MB of unused packages from Studio setup (#4395) 2026-03-17 21:32:38 -07:00
frontend Unused return value causes build failures (#4385) 2026-03-17 20:57:27 -07:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
install_python_stack.py studio: improve Colab notebook, redesign ready popup, and clean up install output (#4339) 2026-03-16 21:39:25 -07:00
LICENSE.AGPL-3.0 Add AGPL-3.0 license to studio folder 2026-03-09 19:36:25 +00:00
setup.bat Final cleanup 2026-03-12 18:28:04 +00:00
setup.ps1 Fix frontend rebuild detection and npm dependency issues 2026-03-18 07:01:45 +00:00
setup.sh Fix frontend rebuild detection and npm dependency issues 2026-03-18 07:01:45 +00:00
Unsloth_Studio_Colab.ipynb Update Unsloth_Studio_Colab.ipynb 2026-03-17 15:42:38 -07:00