antfu-collective / ni

💡 Use the right package manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Export command generators

Zeko369 opened this issue · comments

Clear and concise description of the problem

Export i.e. yarnInstall(packages: string[])
which would generate yarn install foo, and a generic install(pm: PackageManager, packages: string [])

Suggested solution

Simply extract and export internal functionality

Alternative

No response

Additional context

No response

Validations

Why u use install(pm: PackageManager, packages: string []) instead of ni packageA packageB...? The latter command is more concise.