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

Provide a single bundled JS file for the CLI #2592

Open
RobertCraigie opened this issue Aug 14, 2024 · 1 comment
Open

Provide a single bundled JS file for the CLI #2592

RobertCraigie opened this issue Aug 14, 2024 · 1 comment

Comments

@RobertCraigie
Copy link

Context / Current Behaivour

We've ran into issues on two separate occasions due to a regression in new minor releases of one of the transitive deps of the Prism CLI. This means that we can't even downgrade to an earlier CLI version as npx will still use the broken transitive dep.

#2566

Possible Solution(s)

If instead of using npx to run the Prism CLI, we could download a JS file (e.g. from github releases) and run it ourselves, we wouldn't ever run into issues due to new transitive dependency releases.

Another alternative would be to update the existing CLI package (or publish a separate one) that would just be the bundled JS file with no dependencies.

@dgellow
Copy link

dgellow commented Aug 14, 2024

To add to Robert's comment, we use that type of bundles for multiple of our internal tooling, we had a great experience using esbuild to generate bundles containing all files and dependencies without much time investment.

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