File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
packaging/common/cfengine-hub Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ log_debug "Installing javascript npm dependencies..."
137137 run_and_print_on_failure npm ci --prefix " $BASEDIR " /mission-portal/public/scripts/
138138 # build react components
139139 run_and_print_on_failure npm run build --prefix " $BASEDIR " /mission-portal/public/scripts/
140- # remove the packages specified in devDependencies
141- run_and_print_on_failure npm prune --omit=dev --prefix " $BASEDIR " /mission-portal/public/scripts/
140+ # remove node_modules since the bundles are already built
141+ run_and_print_on_failure rm -rf " $BASEDIR " /mission-portal/public/scripts/node_modules
142142 fi
143143)
144144
Original file line number Diff line number Diff line change @@ -16,8 +16,9 @@ if test -f "mission-portal/public/scripts/package.json"; then
1616 npm ci
1717 # build react components
1818 npm run build
19- # remove the packages specified in devDependencies
20- npm prune --omit=dev
19+ # remove node_modules since the bundles are already built
20+ # we do not need them to be presented in the package
21+ rm -rf node_modules
2122fi
2223)
2324
Original file line number Diff line number Diff line change @@ -997,10 +997,7 @@ chmod 0700 -R $PREFIX/httpd/htdocs/ldap/config
997997
998998# changed permissions and owner of PHP and JS dependencies
999999chown root:$MP_APACHE_USER -R $PREFIX /httpd/htdocs/vendor
1000- chown root:$MP_APACHE_USER -R $PREFIX /httpd/htdocs/public/scripts/node_modules
1001-
10021000chmod -R ug=rX,o= $PREFIX /httpd/htdocs/vendor # 440 for files, 550 for dirs
1003- chmod -R ug=rX,o= $PREFIX /httpd/htdocs/public/scripts/node_modules
10041001
10051002# #
10061003# Start Apache server (and php-fpm if present)
You can’t perform that action at this time.
0 commit comments