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,7 +1,21 @@
|
||||
@echo off
|
||||
REM Running npm run dev in both directories
|
||||
|
||||
cd ..
|
||||
cd interface
|
||||
START cmd /k "npm run dev"
|
||||
cd ..
|
||||
npm run dev
|
||||
|
||||
REM Try to get the version of pnpm
|
||||
pnpm --version >nul 2>&1
|
||||
|
||||
REM Check the exit status of the previous command
|
||||
if %ERRORLEVEL% == 0 (
|
||||
REM Running pnpm run dev in both directories
|
||||
cd interface
|
||||
start /b pnpm run dev
|
||||
cd ..
|
||||
pnpm run dev
|
||||
) else (
|
||||
REM Running npm run dev in both directories
|
||||
cd interface
|
||||
start /b npm run dev
|
||||
cd ..
|
||||
npm run dev
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user