22 Commits
Author SHA1 Message Date
iamninja 4b2d79e62f fix: use corepack yarn directly in _pick_yarn_cmd 2026-10-05 16:53:23 +05:00
iamninja eeeca44e4a fix: add debug for npm exec in _pick_yarn_cmd 2026-10-05 16:50:28 +05:00
iamninja 9cf14dc1d2 fix: use npm exec as primary yarn method (bypasses corepack proxy hang) 2026-10-05 16:27:33 +05:00
iamninja 9a939844cb fix: handle hanging yarn binary in _pick_yarn_cmd 2026-10-05 15:49:46 +05:00
iamninja 590bda7491 fix: add debug for yarn binary path and version in _pick_yarn_cmd 2026-10-05 15:44:30 +05:00
iamninja 7b1b8b1b5f fix: delete yarn binaries before corepack, check yarnpkg too 2026-10-05 15:32:46 +05:00
iamninja bcdcc09cce fix: uninstall yarn 1.x before corepack prepare and fix corepack indent 2026-10-05 15:29:45 +05:00
iamninja 2b92e7b6d6 fix: change CWD to /tmp in _ensure_yarn_installed
All yarn/npm commands now run from /tmp to completely avoid workspace
package.json with patch: entries. Restores original CWD after install.
2026-10-05 15:21:57 +05:00
iamninja c5afd450f5 fix: remove --workspace flag (invalid for global npm), keep env var 2026-10-05 15:16:16 +05:00
iamninja caba7a5f72 fix: disable npm workspaces with env and --workspace flag
npm still reads workspace package.json even with cwd=/tmp because
it uses HOME-based global configs. Set NPM_CONFIG_WORKSPACES=''
and pass --workspace= to fully disable workspace resolution.
2026-10-05 15:10:58 +05:00
iamninja 6d4c69ff16 fix: run yarn install from /tmp to avoid patch: protocol error
npm reads workspace package.json when run from source directory.
The frontend package.json contains patch: entries (Yarn 4.x PnP)
that npm can't understand. Run from /tmp instead.

Also fix 'run() got an unexpected keyword argument stdout' by
using subprocess.run() directly for npm uninstall/cache clean.
2026-10-05 14:56:26 +05:00
iamninja e2eb3fa65d fix: use @yarnpkg/cli instead of yarn@berry/1.x
yarn@berry and yarn@latest install yarn 1.x, not yarn 4.x.
@yarnpkg/cli is the actual yarn 4.x npm package. Also restore
yarn 1.x before 'yarn set version stable' on METHOD 4.
2026-10-05 14:44:21 +05:00
iamninja bdf291466e fix: only clean yarn cache/telemetry, not config files 2026-10-05 14:37:36 +05:00
iamninja 7e08280539 fix: fix corepack install command (remove bad input/stdin) 2026-10-05 14:35:58 +05:00
iamninja fe754e15b9 fix: preserve .yarnrc.yml during yarn cleanup
.yarnrc.yml configures Yarn 4.x mode; removing it breaks yarn
detection and prevents yarn 4.x reinstallation on retry.
2026-10-05 14:34:02 +05:00
iamninja 8f2cd848e6 fix: preserve yarn releases when cleaning global cache
Previously rm -rf /root/.yarn deleted yarn binary itself. Now only
clean cache/telemetry/settings.yml files, keeping releases/ intact.
2026-10-05 14:29:06 +05:00
iamninja 6e1555ab84 fix: clean global Yarn cache before frontend install
Global /root/.yarn cache contains stale builtin<compat/typescript>
patch references to _tsc.js that don't exist in typescript 7.0.2.
Clean it before each yarn install attempt.
2026-10-05 14:22:03 +05:00
iamninja 56e16c3996 fix: clean Yarn 4.x PnP files before yarn install
PnP files (.pnp.cjs, .pnp.d.ts, .pnp.loader.mjs) can cause stale
typescript patch resolution errors (ENOENT _tsc.js). Clean them
before yarn install and before retry.
2026-10-05 14:12:05 +05:00
iamninja 7cf0a6f475 change min node version 20 => 22 2026-08-09 17:50:06 +05:00
iamninja ff3d015706 readme fix 2026-02-22 10:47:03 +05:00
iamninja 701d502a9b readme fix 2026-02-22 00:09:16 +05:00
iamninja 1580d347d7 first commit 2026-02-22 00:05:43 +05:00