Skip to content

Commit f22e5e9

Browse files
authored
Merge pull request #163 from cloudblue/fix_entrypoint_for_node_modules_shadowing
LITE-27185 fix entrypoint for node_modules shadowing
2 parents 6e32ef4 + 667c571 commit f22e5e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if [[ "$1" == "cextrun" ]]; then
3434

3535
poetry install
3636
if [[ "$RUNNING_MODE" == "local" ]] && [[ -f $EXTENSION_DIR/package.json ]]; then
37-
test ! -L "node_modules" && ln -s /install_temp/node_modules .
37+
test ! -d "node_modules" && test -d /install_temp/node_modules && ln -s /install_temp/node_modules .
3838
npm run build --if-present
3939
fi
4040

@@ -45,7 +45,7 @@ if [[ "$1" == "extension-test" ]] || [[ "$1" == "extension-devel" ]]; then
4545
poetry install
4646

4747
if [[ "$RUNNING_MODE" == "local" ]] && [[ -f $EXTENSION_DIR/package.json ]]; then
48-
test ! -L "node_modules" && ln -s /install_temp/node_modules .
48+
test ! -d "node_modules" && test -d /install_temp/node_modules && ln -s /install_temp/node_modules .
4949
npm run build --if-present
5050
fi
5151
fi
@@ -55,7 +55,7 @@ if [[ "$1" == *bash* ]] && [[ "$#" -eq 1 ]] && [[ -f pyproject.toml ]]; then
5555
poetry install
5656

5757
if [[ "$RUNNING_MODE" == "local" ]] && [[ -f $EXTENSION_DIR/package.json ]]; then
58-
test ! -L "node_modules" && ln -s /install_temp/node_modules .
58+
test ! -d "node_modules" && test -d /install_temp/node_modules && ln -s /install_temp/node_modules .
5959
npm run build --if-present
6060
fi
6161

0 commit comments

Comments
 (0)