Skip to content

fix(update): only the first package.json is updated #276

@kevinsimper

Description

@kevinsimper

Syncpack version

13.0.3

Operating system(s)

Mac

Steps to reproduce

You were linked from the turborepo website (congrats) and it looked really cool.

I ran this command and expected it to update all the wrangler but it only updated it in the first package.json even though wrangler is in all the folders

$ npx syncpack update --filter 'wrangler'
- package.json
- apps/x1/package.json
- apps/x2/package.json
- apps/x3/package.json
- apps/x4/package.json
- apps/x5/package.json
- apps/x6/package.json

I also ran with SYNCPACK_VERBOSE=true but it did not give me much help unfortunately

Image

and I could not read from the documentation if I had to do more to make it update all the package.json
https://jamiemason.github.io/syncpack/command/update/#troubleshooting

Really cool tool otherwise!

Expected behavior

It would update all the 7 package.json in my turborepo.

Actual behavior

It only update the first one in the npm turborepo workspace.

Contents of syncpack configuration file

Optional comments

No response

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