Skip to content

Commit 2979a7c

Browse files
committed
Move rimraf to prod deps in extensions
The postinstall uses rimraf so it needs to exist in the final build.
1 parent 638ab7c commit 2979a7c

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

ci/build/npm-postinstall.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

4241
main "$@"

ci/dev/vscode.patch

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,24 @@ 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..ceb0728940 100644
222+
--- a/extensions/package.json
223+
+++ b/extensions/package.json
224+
@@ -3,12 +3,12 @@
225+
"version": "0.0.1",
226+
"description": "Dependencies shared by all extensions",
227+
"dependencies": {
228+
+ "rimraf": "^3.0.2",
229+
"typescript": "3.9.6"
230+
},
231+
"scripts": {
232+
"postinstall": "node ./postinstall"
233+
},
234+
"devDependencies": {
235+
- "rimraf": "^3.0.2"
236+
}
237+
}
220238
diff --git a/package.json b/package.json
221239
index 86e3d5140d..2e52256e49 100644
222240
--- a/package.json

0 commit comments

Comments
 (0)