Archived
1
0

Move rimraf to prod deps in extensions

The postinstall uses rimraf so it needs to exist in the final build.
This commit is contained in:
Asher 2020-07-30 10:42:34 -05:00
parent 638ab7c557
commit 50ed29e0f0
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
2 changed files with 21 additions and 2 deletions

View File

@ -35,8 +35,7 @@ vscode_yarn() {
cd lib/vscode cd lib/vscode
yarn --production --frozen-lockfile yarn --production --frozen-lockfile
cd extensions cd extensions
# Cannot use --production here. The postinstall here uses a dev dependency. yarn --production --frozen-lockfile
yarn --frozen-lockfile
} }
main "$@" main "$@"

View File

@ -217,6 +217,26 @@ index 0000000000..88b720ceee
+ util.rimraf("out-vscode-min"), + util.rimraf("out-vscode-min"),
+ common.minifyTask("out-vscode") + common.minifyTask("out-vscode")
+)); +));
diff --git a/extensions/package.json b/extensions/package.json
index 7c668c9744..0778f4f7db 100644
--- a/extensions/package.json
+++ b/extensions/package.json
@@ -2,13 +2,14 @@
"name": "vscode-extensions",
"version": "0.0.1",
"description": "Dependencies shared by all extensions",
+ "dependencies_comment": "Move rimraf to dependencies because it is used in the postinstall script.",
"dependencies": {
+ "rimraf": "^3.0.2",
"typescript": "3.9.6"
},
"scripts": {
"postinstall": "node ./postinstall"
},
"devDependencies": {
- "rimraf": "^3.0.2"
}
}
diff --git a/package.json b/package.json diff --git a/package.json b/package.json
index 86e3d5140d..2e52256e49 100644 index 86e3d5140d..2e52256e49 100644
--- a/package.json --- a/package.json