JamieMason / JamieMason/syncpack

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

Open
#168 3 comments 3 reactions 0 assignees View on GitHub
Priority: High Type: Feat
Dominant language
Rust
Stars
2.1k
Forks
72
PR merge metrics
No merged PRs in 30d

Description

## 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:

```json
{
"templateFields": [
"author": "Cool Dev Person ",
"scripts": [
"build": "tsc",
"do:something": "something --makeItCool"
]
],
}
```

Contributor guide

Open the contributing guide

Research direction

Start with the proposed .syncpackrc templateFields configuration and inspect how package.json values are currently synchronized. Define how author and selected scripts should propagate across packages while leaving additional scripts unchanged. Done means the requested fields can be synchronized without affecting unrelated package.json values.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.