Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 6336699

Browse files
committed
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)
1 parent 91242b6 commit 6336699

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/build-server.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ mv $NODE_FILENAME node
4545
cd ..
4646

4747

48-
rm -r $BUILD_DIR/node/lib/node_modules/npm \
48+
rm -r $BUILD_DIR/node/lib/node_modules/{npm,corepack} \
49+
$BUILD_DIR/node/bin/{npm,npx,corepack} \
50+
$BUILD_DIR/node/CHANGELOG.md \
4951
$BUILD_DIR/node/include/node \
5052
$BUILD_DIR/node_modules/electron* \
5153
$BUILD_DIR/electron*.{js,map}

0 commit comments

Comments
 (0)