Skip to main content

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:

SettingTypeDescription
trackNodeLtsVersionsbooleanAutomatically sync engines.node to current Node.js LTS versions

Usage

nova recipe package-json sync-environment [options]

Options

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