Skip to content

chore: remove unused packages #829

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alcpereira
Copy link
Contributor

fs-extra and sirv-cli seems to be unused dependencies that we can remove

Copy link

changeset-bot bot commented Mar 31, 2025

🦋 Changeset detected

Latest commit: c38bd74

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
webdriver-image-comparison Patch
@wdio/visual-reporter Patch
@wdio/visual-service Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@alcpereira alcpereira force-pushed the chore/remove-unused-packages branch from 4bf110c to c38bd74 Compare March 31, 2025 19:03
@wswebcreation
Copy link
Member

(On my phone now) But as far as I recall the sirv-cli is used for starting the server in from the CLI

Copy link
Member

@wswebcreation wswebcreation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, can you please check my comment?

@@ -31,7 +31,6 @@
"dependencies": {
"@inquirer/prompts": "^7.3.2",
"ora": "^8.2.0",
"sirv-cli": "^3.0.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alcpereira

It's used here, not sure if you have a better way to do this, but for now I believe this packages still needs to be in the deps

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npx should install the package, but I will investigate it a bit further.

In theory npx my-package should download the my-package and also its dependency.
In the code you linked we are calling npx sirv which is for sirv package, but it does not have sirv-cli as a dependency (here).

So it should not have any impact, but I will double check.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I remember sirv is the command and npx is also used to run the server if it's already installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants