Skip to content

Commit

Permalink
chore(core): fix plugins install on docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
TdyP committed Sep 18, 2024
1 parent c91d7fd commit 49bb297
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions docker/scripts/plugins_install.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
pluginsFolder=/app/apps/core/dist/plugins

if find "$pluginsFolder" -mindepth 1 -maxdepth 1 | read; then
for plugin in "$pluginsFolder"/*/; do
echo "Install dependencies for $plugin"
touch "$plugin"yarn.lock
yarn --cwd "$plugin" install
done
fi
find $pluginsFolder -name package.json -not -path "*/node_modules/*" -exec sh -c '
echo "🚧 Install dependencies for plugin $(basename $(dirname {}))"
(cd $(dirname {}) && touch "$plugin"yarn.lock && yarn install)
' \;

0 comments on commit 49bb297

Please sign in to comment.