Skip to content

Commit

Permalink
Merge pull request #75 from shopware/admin-6.6-prod-deps
Browse files Browse the repository at this point in the history
feat: install only production dependencies in administration
  • Loading branch information
shyim authored Jan 5, 2024
2 parents 300c67e + c595b1b commit 6d65a25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shopware/administration/6.6/bin/build-administration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"

export PROJECT_ROOT="${PROJECT_ROOT:-"$(dirname "$CWD")"}"
export ENV_FILE=${ENV_FILE:-"${PROJECT_ROOT}/.env"}
export NPM_CONFIG_FUND=false
export NPM_CONFIG_AUDIT=false
export NPM_CONFIG_UPDATE_NOTIFIER=false

# shellcheck source=functions.sh
source "${PROJECT_ROOT}/bin/functions.sh"
Expand Down Expand Up @@ -66,7 +69,7 @@ else
echo "Cannot check extensions for required npm installations as jq is not installed"
fi

(cd "${ADMIN_ROOT}"/Resources/app/administration && npm install --no-audit --prefer-offline)
(cd "${ADMIN_ROOT}"/Resources/app/administration && npm install --prefer-offline --production)

# Dump entity schema
if [[ -z "${SHOPWARE_SKIP_ENTITY_SCHEMA_DUMP-""}" ]] && [[ -f "${ADMIN_ROOT}"/Resources/app/administration/scripts/entitySchemaConverter/entity-schema-converter.ts ]]; then
Expand Down

0 comments on commit 6d65a25

Please sign in to comment.