Skip to content

Commit

Permalink
Always recreate fonts when syncing npm dependencies in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
noliveleger committed Apr 17, 2023
1 parent ce8ff45 commit 32d8090
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/init.bash
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ if [[ ! -d "${KPI_SRC_DIR}/staticfiles" ]] || ! python "${KPI_SRC_DIR}/docker/ch
rm -rf "${KPI_SRC_DIR}/jsapp/compiled"

echo "Syncing \`npm\` packages…"
check-dependencies --install
if ( ! check-dependencies ); then
npm install --quiet > /dev/null 2>&1
else
npm run postinstall > /dev/null 2>&1

echo "Rebuilding client code…"
npm run build
Expand Down

0 comments on commit 32d8090

Please sign in to comment.