Skip to content

Commit c5d5025

Browse files
committed
Remove broken symlinks in extensions node modules
The broken symlinks cause nfpm to fail.
1 parent 2979a7c commit c5d5025

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ci/dev/vscode.patch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,20 @@ index 7c668c9744..ceb0728940 100644
235235
- "rimraf": "^3.0.2"
236236
}
237237
}
238+
diff --git a/extensions/postinstall.js b/extensions/postinstall.js
239+
index da4fa3e9d0..50f3e1144f 100644
240+
--- a/extensions/postinstall.js
241+
+++ b/extensions/postinstall.js
242+
@@ -24,6 +24,9 @@ function processRoot() {
243+
rimraf.sync(filePath);
244+
}
245+
}
246+
+
247+
+ // Delete .bin so it doesn't contain broken symlinks that trip up nfpm.
248+
+ rimraf.sync(path.join(__dirname, 'node_modules', '.bin'));
249+
}
250+
251+
function processLib() {
238252
diff --git a/package.json b/package.json
239253
index 86e3d5140d..2e52256e49 100644
240254
--- a/package.json

0 commit comments

Comments
 (0)