Open OfficialCRUGG opened 2 years ago
Came here looking for this too. Looks like packageManager
is already exposed via https://github.com/uetchy/create-create-app/commit/69a87e3b0282d79d88b4d69c2811ee1c5aa82371#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R173. We just need @uetchy to release/publish a new version.
Hello, I'm using a function for
caveat
to list all possible commands, exactly likecreate-create-app
does itself. I can easily access the template and name in there throughAfterHookOptions
, but I cannot get what package manager was selected. This means I have to either show onlynpm run dev
or options for all package managers. Instead, I'd like to show e.g.yarn dev
if the user selected yarn as the package manager.