Skip to content

Commit

Permalink
Fix scripts paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Telroshan committed Mar 14, 2024
1 parent ad27962 commit cfdb4e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions scripts/npm-update-all.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
for dir in src/*; do
for dir in ../src/*; do
if [ -f "$dir/package.json" ]; then
(
cd "$dir"
npm i -D
cd ../../..
cd ../..
)
else
echo "$(basename "$dir") doesn't have a package.json, skipping"
Expand Down
8 changes: 4 additions & 4 deletions scripts/test-all.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@echo off
for /d %%G in (src/*) do @(
if exist "src\%%~nxG\test" (
(cd "src\%%~nxG" && npm i -D && npm t) || (@echo ERRORS in %%~nxG && exit /b !ERRORLEVEL!)
cd ..\..
for /d %%G in (../src/*) do @(
if exist "..\src\%%~nxG\test" (
(cd "..\src\%%~nxG" && npm i -D && npm t) || (@echo ERRORS in %%~nxG && exit /b !ERRORLEVEL!)
cd ..
) else (
@echo %%~nxG doesn't have any test, skipping
)
Expand Down
4 changes: 2 additions & 2 deletions scripts/test-all.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
for dir in src/*; do
for dir in ../src/*; do
if [ -d "$dir/test" ]; then
(
cd "$dir"
npm i -D && npm t || { echo "ERRORS in $(basename "$dir")"; exit $?; }
cd ../../..
cd ../..
)
else
echo "$(basename "$dir") doesn't have any test, skipping"
Expand Down

0 comments on commit cfdb4e5

Please sign in to comment.