-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Problem
We prefer to use Bun for managing our package dependencies, but the Envio CLI force-feeds PNPM. For example, when I run this command:
bun run envio codegen
The CLI starts using PNPM, entirely ignoring my Bun setup. The CLI even proceeds to install PNPM on my local machine:
bun run envio codegen
Installing packages...
Checking for pnpm package...
Package pnpm is not installed. Installing now...
added 1 package in 476ms
This is problematic because we use Envio in a monerepo where PNPM is not our package manager of choice.
Solutions
Temporary Solution
Clarify in your documentation site that this is the behavior of the Envio CLI. At the moment, PNPM is 'recommended' - but what happens in practice is that PNPM is enforced, not just recommended.
Permanent Solution
Allow users to install the Envio CLI as a Node.js dependency and run it from node_modules. I don't see why you have to enforce PNPM?
More Context
We (cc @razgraf) previously discussed this issue with your team in ~Jan 2024 in our private chat group on Telegram.
At that time, @DenhamPreen said this:
I asked this internally and we did make some progress on this but were limited by a blocker and so opinionatedly decided to keep the support to pnpm for now. Bun was a little more complicated, let me get the response to that.
Both these issues where the blocker, however both look closed and so we can explore again. Will share with the team the user feedback for usage with yarn...
Do you have any updates on support for other package managers? Can't you simply load envio from the user's own node_modules?