Sync Environment
Sync engines, os, cpu, libc, devEngines, and packageManager fields in workspace package.json files.
Summary
The sync-environment recipe ensures that runtime environment fields in each workspace's package.json follow consistent conventions. When the trackNodeLtsVersions setting is enabled, it automatically updates the engines.node constraint to match all currently active Node.js LTS versions.
Settings
Settings are configured per workspace in nova.config.json under the recipes key:
| Setting | Type | Description |
|---|---|---|
trackNodeLtsVersions | boolean | Automatically sync engines.node to current Node.js LTS versions |
Usage
- nova (installed)
- npx (no install)
nova recipe package-json sync-environment [options]
npx --yes @cbnventures/nova@latest recipe package-json sync-environment [options]
Options
| Flag | Description |
|---|---|
-d, --dry-run | Preview changes without modifying files. |
-r, --replace-file | Overwrite the original file instead of creating a backup. |