Sync Identity
Sync name, version, description, keywords, and license fields in workspace package.json files.
Summary
The sync-identity recipe ensures that identity-related fields in each workspace's package.json match the conventions defined in nova.config.json. It enforces consistent naming, valid semver versions, and (for distributable workspaces with the setting enabled) syncs description and keywords from the project-level config.
Settings
Settings are configured per workspace in nova.config.json under the recipes key:
| Setting | Type | Description |
|---|---|---|
description | boolean | Sync the description field (distributable workspaces only) |
keywords | boolean | Sync the keywords field (distributable workspaces only) |
Usage
- nova (installed)
- npx (no install)
nova recipe package-json sync-identity [options]
npx --yes @cbnventures/nova@latest recipe package-json sync-identity [options]
Options
| Flag | Description |
|---|---|
-d, --dry-run | Preview changes without modifying files. |
-r, --replace-file | Overwrite the original file instead of creating a backup. |