uetchy / create-create-app

⚡️ Create your own `create-something` app.
MIT License
94 stars 24 forks source link

Accessing selected package manager in caveat #51

Open OfficialCRUGG opened 1 year ago

OfficialCRUGG commented 1 year ago

Hello, I'm using a function for caveat to list all possible commands, exactly like create-create-app does itself. I can easily access the template and name in there through AfterHookOptions, but I cannot get what package manager was selected. This means I have to either show only npm 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.

holic commented 1 year 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.