File tree Expand file tree Collapse file tree 2 files changed +35
-2
lines changed
Expand file tree Collapse file tree 2 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,7 @@ vscode_yarn() {
3535 cd lib/vscode
3636 yarn --production --frozen-lockfile
3737 cd extensions
38- # Cannot use --production here. The postinstall here uses a dev dependency.
39- yarn --frozen-lockfile
38+ yarn --production --frozen-lockfile
4039}
4140
4241main " $@ "
Original file line number Diff line number Diff line change @@ -217,6 +217,40 @@ index 0000000000..88b720ceee
217217+ util.rimraf("out-vscode-min"),
218218+ common.minifyTask("out-vscode")
219219+ ));
220+ diff --git a/extensions/package.json b/extensions/package.json
221+ index 7c668c9744..0778f4f7db 100644
222+ --- a/extensions/package.json
223+ +++ b/extensions/package.json
224+ @@ -2,13 +2,14 @@
225+ "name": "vscode-extensions",
226+ "version": "0.0.1",
227+ "description": "Dependencies shared by all extensions",
228+ + "dependencies_comment": "Move rimraf to dependencies because it is used in the postinstall script.",
229+ "dependencies": {
230+ + "rimraf": "^3.0.2",
231+ "typescript": "3.9.6"
232+ },
233+ "scripts": {
234+ "postinstall": "node ./postinstall"
235+ },
236+ "devDependencies": {
237+ - "rimraf": "^3.0.2"
238+ }
239+ }
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() {
220254diff --git a/package.json b/package.json
221255index 86e3d5140d..2e52256e49 100644
222256--- a/package.json
You can’t perform that action at this time.
0 commit comments