From 6336699618fa99a19ff9117094bd74bd71d6e56a Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Thu, 27 Mar 2025 21:06:35 +0100 Subject: [PATCH] build(server): improve "node" folder cleanup * remove useless symlinks to non-existing files (npm, npx -> the actual file gets deleted by "rm -r $BUILD_DIR/node/lib/node_modules/npm" => fixes #1499 (this time fully ;-)) * remove unused corepack * remove useless CHANGELOG.md (LICENSE and README.md should of course still remain) --- bin/build-server.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/build-server.sh b/bin/build-server.sh index 6677d7c19..e89c72d5a 100755 --- a/bin/build-server.sh +++ b/bin/build-server.sh @@ -45,7 +45,9 @@ mv $NODE_FILENAME node cd .. -rm -r $BUILD_DIR/node/lib/node_modules/npm \ +rm -r $BUILD_DIR/node/lib/node_modules/{npm,corepack} \ + $BUILD_DIR/node/bin/{npm,npx,corepack} \ + $BUILD_DIR/node/CHANGELOG.md \ $BUILD_DIR/node/include/node \ $BUILD_DIR/node_modules/electron* \ $BUILD_DIR/electron*.{js,map}