File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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
You can’t perform that action at this time.
0 commit comments