Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

pnpm 10.34.9: start.bat installs it, and updates a pnpm older than the releases with the security fixes

Adarsha96c370c2113
diff --git a/package.json b/package.json
index 52b674ee..67a91fdf 100644
--- a/package.json
+++ b/package.json
@@ -87,5 +87,5 @@
"typescript": "^5",
"vitest": "^5.0.5"
},
- "packageManager": "[email protected]"
+ "packageManager": "[email protected]"
}
diff --git a/start.bat b/start.bat
index 5fa8f733..2c449e6d 100644
--- a/start.bat
+++ b/start.bat
@@ -13,10 +13,18 @@ if errorlevel 1 (
exit /b 1
)
+rem pnpm: installed when missing, and updated when it is older than the releases with the security fixes
+rem (10.34.5 in 10.x, 11.11.0 in 11.x). package.json names the version the project uses.
+set "PNPM_V="
where pnpm >nul 2>nul
-if errorlevel 1 (
- echo Installing pnpm...
- call npm install -g [email protected] || goto :fail
+if not errorlevel 1 for /f "delims=" %%v in ('pnpm --version 2^>nul') do set "PNPM_V=%%v"
+set "PNPM_OK=0"
+if defined PNPM_V (
+ node -e "const [a,b,c]=process.argv[1].split(/[.-]/).map(Number);process.exit(a>11||(a===11&&b>=11)||(a===10&&(b>34||(b===34&&c>=5)))?0:1)" "%PNPM_V%" && set "PNPM_OK=1"
+)
+if "%PNPM_OK%"=="0" (
+ if defined PNPM_V (echo Updating pnpm %PNPM_V% to 10.34.9...) else (echo Installing pnpm...)
+ call npm install -g [email protected] || goto :fail
)
echo Checking dependencies...