Skip to main content

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:

SettingTypeDescription
homepagebooleanSync the homepage field (distributable workspaces only)
bugsbooleanSync the bugs field (distributable workspaces only)
authorbooleanSync the author field (distributable workspaces only)
contributorsbooleanSync the contributors field (distributable workspaces only)
fundingbooleanSync the funding field (distributable workspaces only)
repositorybooleanSync the repository field (distributable workspaces only)

Usage

nova recipe package-json sync-ownership [options]

Options

FlagDescription
-d, --dry-runPreview changes without modifying files.
-r, --replace-fileOverwrite the original file instead of creating a backup.