Skip to content
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

2.13.0 automatically installs playwright when used as a dependency #1865

Closed
cyantree opened this issue Feb 10, 2024 · 6 comments
Closed

2.13.0 automatically installs playwright when used as a dependency #1865

cyantree opened this issue Feb 10, 2024 · 6 comments
Labels
bug Things that aren't working right in the library.

Comments

@cyantree
Copy link
Contributor

Describe the bug

In 2.13.0 the following postinstall script had been added to package.json:

"postinstall": "npx playwright install"

Therefore when installing Shoelace as a dependency also playwright gets installed. IMHO this is unnecessary as playwright is probably only used for developing the package.

Additional information

Is this behaviour intended? Is it maybe possible to do this only when installing it for development/contribution?

@cyantree cyantree added the bug Things that aren't working right in the library. label Feb 10, 2024
@ckawalar
Copy link

Hello everybody!

The change in 2.13.0 is also breaking when something like the
frontend-maven-plugin is used, that is using npm-cli.js for the installation:

[INFO] npm ERR! path /home/runner/work/projekt/node_modules/@shoelace-style/shoelace
[INFO] npm ERR! command failed
[INFO] npm ERR! command sh -c npx playwright install

@claviska
Copy link
Member

This was added this as part of the Vue types PR in 4071904.

Hey @break-stuff, do you remember why this was added?

@break-stuff
Copy link
Contributor

Ah, that was added because the packages were required to successfully run tests. Moving this to prepare instead of postinstall should fix this issue.

@claviska
Copy link
Member

Thanks for clarifying. I'll get this updated :)

@break-stuff
Copy link
Contributor

I just created a PR to fix this.

@claviska
Copy link
Member

Merged. Thank you, sir!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that aren't working right in the library.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants