Skip to content

Commit 370dd95

Browse files
authored
eng: Dependency reduction via optional peer dependencies (#2142)
1 parent d69dc39 commit 370dd95

File tree

6 files changed

+596
-3449
lines changed

6 files changed

+596
-3449
lines changed

eng/MIGRATION.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ This is relatively easy.
2626
Hard mode engage!
2727

2828
1. Follow the subsection above on [universal steps](#universal-steps).
29+
1. As needed, add the following as dev dependencies. Use `*` for the desired version--they are optional peer
30+
dependencies in this package, and you don't need to control the version from the extension. Then do `npm i` again.
31+
```json
32+
"devDependencies": {
33+
"@vscode/test-cli": "*",
34+
"@vscode/test-electron": "*",
35+
"@vscode/vsce": "*",
36+
"esbuild": "*",
37+
"esbuild-plugin-copy": "*"
38+
}
39+
```
2940
1. Update your tsconfig.json to use target=es2022, lib=es2022, module=nodenext, moduleResolution=nodenext.
3041
> [Sample PR](https://github.com/microsoft/vscode-azurestaticwebapps/pull/1001/files)
3142
1. Rewrite main.js at the root, it will look more like [this](https://github.com/microsoft/vscode-containers/blob/main/main.js).

0 commit comments

Comments
 (0)