Skip to content

Commit 2087eff

Browse files
author
Anas Husseini
committed
remove unnecessary bins and libs from node20 snap
1 parent 320596d commit 2087eff

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

node20/rockcraft.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,21 @@ parts:
1919
nodejs:
2020
plugin: nil
2121
stage-packages:
22-
- bash_bins
2322
- base-files_lib
24-
- coreutils_bins
2523
- libbrotli1_libs
2624
- libc-ares2_libs
2725
- libicu74_libs
2826
- libnghttp2-14_libs
2927
- libssl3_libs
3028
- libstdc++6_libs
3129
- libuv1_libs
32-
- sed_bins
3330
- zlib1g_libs
3431
stage-snaps:
3532
- node/20
3633
override-prime: |
3734
craftctl default
38-
ln -s ${CRAFT_PRIME}/usr/bin/bash ${CRAFT_PRIME}/bin/sh
35+
rm -rf ${CRAFT_PRIME}/lib/node_modules/
36+
rm ${CRAFT_PRIME}/bin/npm ${CRAFT_PRIME}/bin/npx
37+
rm ${CRAFT_PRIME}/bin/corepack ${CRAFT_PRIME}/bin/yarn*
3938
ln -s ${CRAFT_PRIME}/bin/node ${CRAFT_PRIME}/bin/nodejs
4039
ln -s ${CRAFT_PRIME}/bin/node ${CRAFT_PRIME}/bin/js

0 commit comments

Comments
 (0)