Sync Ownership
Sync homepage, bugs, author, contributors, funding, and repository fields in workspace package.json files.
Summary
The sync-ownership recipe ensures that ownership-related fields in each workspace's package.json match the values defined in nova.config.json. For distributable workspaces, each field can be individually enabled via recipe settings.
Settings
Settings are configured per workspace in nova.config.json under the recipes key:
| Setting | Type | Description |
|---|---|---|
homepage | boolean | Sync the homepage field (distributable workspaces only) |
bugs | boolean | Sync the bugs field (distributable workspaces only) |
author | boolean | Sync the author field (distributable workspaces only) |
contributors | boolean | Sync the contributors field (distributable workspaces only) |
funding | boolean | Sync the funding field (distributable workspaces only) |
repository | boolean | Sync the repository field (distributable workspaces only) |
Usage
- nova (installed)
- npx (no install)
nova recipe package-json sync-ownership [options]
npx --yes @cbnventures/nova@latest recipe package-json sync-ownership [options]
Options
| Flag | Description |
|---|---|
-d, --dry-run | Preview changes without modifying files. |
-r, --replace-file | Overwrite the original file instead of creating a backup. |