Closed Klustre closed 2 months ago
@justintaylor-dev This is the key I mentioned yesterday: packageManager
It's part of an experimental feature called Corepack
which needs to be enabled, but there are discussions going on to enable it by default.
Found this as well: which-pm-runs
Supports npm, pnpm, Yarn, cnpm, bun and any other package managers that set the
npm_config_user_agent
env variable.
In the spirit of supporting various frameworks it would be nice when
yarn
is opt-in. To supportnpm
we have to check if theyarn
command is available and propose to usenpm
otherwise. There are hints thatyarn
can be used alongsidenpm
. Is this correct? I'm not able to implement this right now, but happy to do so when I can.The affected lines in
create-bolt-uxp
:https://github.com/hyperbrew/bolt-uxp/blob/d9497ca0d53ba15e29dce4d75e9abc0602411de9/create-bolt-uxp/src/build.ts#L246
https://github.com/hyperbrew/bolt-uxp/blob/d9497ca0d53ba15e29dce4d75e9abc0602411de9/create-bolt-uxp/src/build.ts#L272