-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
repo: cleanup dependencies #10717
repo: cleanup dependencies #10717
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took this opportunity to run depcheck
on our project. Running it just on the core
package gave me this output:
Unused dependencies
* @babel/runtime
* es6-promise
Missing dependencies
* chai: ./src/node/backend-application-config-provider.spec.ts
* temp: ./src/node/logger-cli-contribution.spec.ts
* sinon: ./src/node/logger-cli-contribution.spec.ts
* electron-store: ./src/electron-main/electron-main-application.ts
* vscode-jsonrpc: ./src/electron-main/messaging/electron-messaging-service.ts
* electron: ./src/electron-browser/electron-clipboard-service.ts
* native-keymap: ./src/common/keyboard/keyboard-layout-provider.ts
* jsdom: ./src/browser/test/jsdom.ts
* vscode-languageserver-types: ./shared/vscode-languageserver-types/index.d.ts
While es6-promise
is a false positive, since it's invoked in generated js code, everything else seems to be correct. (I tested removing @babel/runtime
) I believe we can find more unnecessary dependencies if you run that on every package. WDYT?
packages/preview/src/browser/markdown/markdown-preview-handler.ts
Outdated
Show resolved
Hide resolved
@msujew right, I went over the repo with I confirmed I see the same for |
Here is the output of $ lerna exec depcheck --no-bail --parallel depcheck.txt
|
9fcb632
to
e8b0782
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, thank you for the explanation :)
Everything looks good to me, the app continues to build and run as expected 👍
The commit performs the following changes: - removes an unused dependencies from `@theia` extensions - adds any missing dependencies (declared but never added to the respective `package.json`) Signed-off-by: vince-fugnitto <[email protected]>
e8b0782
to
a1c6221
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the cleanup!
What it does
The pull-request includes the following changes:
package.json
.How to test
Review checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto [email protected]