Skip to content

feat: add "install" command #285

@fregante

Description

@fregante

Description

What's your workflow when adding a dependency to a package?

If it's a new one, I just run npm install foo -w libs/my-package

If any of the other packages already use "foo", I have to hunt down the dependency and copy-paste the version into libs/my-package/package.json. Only then run npm install

This is tedious and error prone.

Suggested Solution

Add syncpack install foo -w libs/package

This can automatically follow its rules for version matching, update the relevant package.json, and then call npm install to actually install the dependency.

Optional comments

I cannot rely on syncpack to fix the issue after the first "latest version" install because npm often fails to properly update the lockfile.

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions