Skip to content

Commit 00fe816

Browse files
committed
Update react-router download to act similar to ant-design download
1 parent 77f4488 commit 00fe816

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/downloader/downloadReactRouter.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@ mkdir -p ./runtime/logs
3939
################################################################
4040
# Download react-router source files to be analyzed
4141
################################################################
42-
git clone https://github.com/remix-run/react-router.git "${SOURCE_DIRECTORY}"
42+
if [ ! -d "${SOURCE_DIRECTORY}" ] ; then # only clone if source doesn't exist
43+
git clone --branch "react-router@${PROJECT_VERSION}" https://github.com/remix-run/react-router.git "${SOURCE_DIRECTORY}"
44+
fi
4345
(
4446
cd "${SOURCE_DIRECTORY}" || exit
45-
git checkout "react-router@${PROJECT_VERSION}" || exit
47+
echo "download${ANALYSIS_NAME}: Installing dependencies..."
4648
pnpm install --frozen-lockfile || exit
49+
echo "download${ANALYSIS_NAME}: Analyzing source..."
4750
npx --yes @jqassistant/ts-lce >./../runtime/logs/jqassistant-typescript-scan.log 2>&1 || exit
4851
)
4952
mkdir -p artifacts/typescript

0 commit comments

Comments
 (0)