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

feat(core): also sync values which are not versions #168

Open
mcookdev opened this issue Nov 16, 2023 · 0 comments
Open

feat(core): also sync values which are not versions #168

mcookdev opened this issue Nov 16, 2023 · 0 comments

Comments

@mcookdev
Copy link

Description

It would be helpful to have the capability to synchronize more fields than just dependencies or to specify values for certain fields.

For example, in a mono-repo, I want to maintain consistency in the author field. Ideally, updating this field once should automatically sync the change across all packages.

Another use case could involve ensuring that every package.json includes a defined set of scripts, with the desired outcome being that these specific scripts are synchronized, while any additional scripts in each file remain unaffected.

Suggested Solution

One potential approach to address this could be implemented in the .syncpackrc file:

{
  "templateFields": [
    "author": "Cool Dev Person <cool.dev.email@company.net>",
    "scripts": [
       "build": "tsc",
       "do:something": "something --makeItCool"
    ]
  ],
}
@JamieMason JamieMason changed the title Sync specific fields feat(core): also sync values which are not versions Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants