Skip to content

Commit ef28700

Browse files
Removed node_modules after build
Ticket: ENT-13273 Signed-off-by: Ihor Aleksandrychiev <ihor.aleksandrychiev@northern.tech>
1 parent 8e4fdb9 commit ef28700

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

build-scripts/bootstrap-tarballs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

ci/setup-projects.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
2122
fi
2223
)
2324

0 commit comments

Comments
 (0)