Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing selected package manager in caveat #51

Open
OfficialCRUGG opened this issue Oct 4, 2022 · 1 comment
Open

Accessing selected package manager in caveat #51

OfficialCRUGG opened this issue Oct 4, 2022 · 1 comment

Comments

@OfficialCRUGG
Copy link

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
Copy link

holic commented Jan 9, 2023

Came here looking for this too. Looks like packageManager is already exposed via 69a87e3#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R173. We just need @uetchy to release/publish a new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants