mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
update scripts to auto check for pnpm and npm
This commit is contained in:
Regular → Executable
+17
-5
@@ -5,8 +5,20 @@
|
||||
|
||||
cd ..
|
||||
|
||||
# Building projects
|
||||
cd ./interface
|
||||
npm run build
|
||||
cd ..
|
||||
npm run build
|
||||
# Try to get the version of pnpm
|
||||
pnpm --version > /dev/null 2>&1
|
||||
|
||||
# Check the exit status of the previous command
|
||||
if [ $? -eq 0 ]; then
|
||||
# Running npm run dev in both directories
|
||||
cd ./interface
|
||||
pnpm run build
|
||||
cd ..
|
||||
pnpm run build
|
||||
else
|
||||
# Running npm run dev in both directories
|
||||
cd ./interface
|
||||
npm run build
|
||||
cd ..
|
||||
npm run build
|
||||
fi
|
||||
Reference in New Issue
Block a user