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

Running without installation #243

Closed
telamon opened this issue Aug 11, 2021 · 2 comments
Closed

Running without installation #243

telamon opened this issue Aug 11, 2021 · 2 comments

Comments

@telamon
Copy link

telamon commented Aug 11, 2021

hey when i attempt to run:

npx size-limit

inside of my module i'm met with an error of installing some profile dependencies...
I'm not too keen on trashing down a lib with more deps just to check it's size, kinda counterproductive...
So i guess either the stand-alone cli functionality should either be repaired or the image in the readme removed?
Thanks! 👍

@ai
Copy link
Owner

ai commented Aug 11, 2021

You must add Size Limit to package.json first to run npx size-limit because of the way how we look for Size Limit plugins.

There is no way to do it from npx size-limit without installing dependencies.

It should be something like:

npm install size-limit
npm install @size-limit/file # or any other plugin
npx size-limit # and now you can run Size Limit because `npm install` added it to package.json

@ai ai closed this as completed Aug 11, 2021
@telamon
Copy link
Author

telamon commented Aug 11, 2021

Sorry to hear that, let me know if you decide to redesign this util. 👍

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

No branches or pull requests

2 participants