Skip to content

Commit b63cf19

Browse files
committed
Remove broken symlinks in extensions node modules
The broken symlinks cause nfpm to fail.
1 parent 50ed29e commit b63cf19

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
@@ -237,6 +237,20 @@ index 7c668c9744..0778f4f7db 100644
237237
- "rimraf": "^3.0.2"
238238
}
239239
}
240+
diff --git a/extensions/postinstall.js b/extensions/postinstall.js
241+
index da4fa3e9d0..50f3e1144f 100644
242+
--- a/extensions/postinstall.js
243+
+++ b/extensions/postinstall.js
244+
@@ -24,6 +24,9 @@ function processRoot() {
245+
rimraf.sync(filePath);
246+
}
247+
}
248+
+
249+
+ // Delete .bin so it doesn't contain broken symlinks that trip up nfpm.
250+
+ rimraf.sync(path.join(__dirname, 'node_modules', '.bin'));
251+
}
252+
253+
function processLib() {
240254
diff --git a/package.json b/package.json
241255
index 86e3d5140d..2e52256e49 100644
242256
--- a/package.json

0 commit comments

Comments
 (0)