antfu-collective / ni

💡 Use the right package manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make it smart/compatible with rushjs

brunos3d opened this issue · comments

Clear and concise description of the problem

When used with rushjs-based monorepos the tool prompts every time for the target agent cause it couldn't find one of the agent files (yarn.lock, package-lock.json)

Suggested solution

Make the tool lookup for the rush.json file then check what package manager rush uses by checking which one of these options are active on the config file

Alternative

No response

Additional context

No response

Validations

It's out-of-scope. I still belive you should use lock, or create a dummy package.json.