create-create-app icon indicating copy to clipboard operation
create-create-app copied to clipboard

Accessing selected package manager in caveat

Open OfficialCRUGG opened this issue 2 years ago • 1 comments

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.

OfficialCRUGG avatar Oct 04 '22 11:10 OfficialCRUGG

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.

frolic avatar Jan 09 '23 23:01 frolic