mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
update scripts to auto check for pnpm and npm
This commit is contained in:
Regular → Executable
+19
-5
@@ -1,10 +1,24 @@
|
||||
@echo off
|
||||
|
||||
REM Running install script
|
||||
call install.bat
|
||||
|
||||
REM Building projects
|
||||
cd ..
|
||||
cd interface
|
||||
npm run build
|
||||
cd ..
|
||||
npm run build
|
||||
|
||||
REM Try to get the version of pnpm
|
||||
pnpm --version > NUL 2>&1
|
||||
|
||||
REM Check the exit status of the previous command
|
||||
IF %ERRORLEVEL% EQU 0 (
|
||||
REM Running pnpm run build in both directories
|
||||
cd ./interface
|
||||
pnpm run build
|
||||
cd ..
|
||||
pnpm run build
|
||||
) ELSE (
|
||||
REM Running npm run build in both directories
|
||||
cd ./interface
|
||||
npm run build
|
||||
cd ..
|
||||
npm run build
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user