-
-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension size doubled after update of TypeScript's major #2273
Comments
@opl- ill update my packages soon, i wasn't aware that its important to add ts as a devDep. |
i updated my packages and ran |
It seems that typescript-eslint/typescript-eslint@e6be621#diff-b9cfc7f2cdf78a7f4b91a753d10865a2 I've never used it before myself so I'm not sure how exactly it behaves, but it seems like it might be useful here? |
@TheRealSyler |
@TheRealSyler You are correct, I didnt' realize. I saw it in |
Info
Problem
I noticed that the extension size went from 147MiB in 0.26.1 to 349MiB in 0.27.3. It appears that the extra space came from the appearance of multiple redundant TypeScript packages in the Vue language server dependencies. The packages in question are:
@typescript-eslint/typescript-estree
- Has its ownnode_modules/typescript
(v4.0.2). The package depends ontypescript *
as adevDependency
.prettier-eslint
- Has its ownnode_modules/typescript
(v3.9.7). The package depends ontypescript ^3.9.3
. See Support TypeScript v4.x prettier/prettier-eslint#402suf-cli
- Has its ownnode_modules/typescript
(v3.9.7). The package depends ontypescript ^3.6.3
. See TypeScript is used as a dependency instead of a devDependency TheRealSyler/suf-cli#2ts-doc-gen
- Has its ownnode_modules/typescript
(v3.9.7). The package depends ontypescript ^3.6.3
. This package, according to its readme, has been superseded bysuf-cli
.Each of these duplicate TypeScript packages contributes 51MB to the extension size. The VLS itself uses
[email protected]
(server/node_modules/typescript
).I'm not sure why the problem with
@typescript-eslint/typescript-estree
happened.package-lock.json
on a machine of a Vetur maintainer, perhaps?In the case of the latter three, it's due to TypeScript refusing to adhere to semver (see microsoft/TypeScript#14116). I opened issues on the project pages of the affected projects.
Side note: why are
suf-cli
andts-doc-gen
bundled? They seem to be development dependencies. Also, one of them replaces the other.Side note 2: this issue also affects
prettier-tslint
(azz/prettier-tslint#41), but since it uses TypeScript as a peer dependency npm only mentions it as an unmet peer dependency.Reproducible Case
N/A
The text was updated successfully, but these errors were encountered: