Cleanup
Remove unsupported keys and reorder remaining keys in workspace package.json files.
Summary
The cleanup recipe finalizes each workspace's package.json by removing keys that are not in the known set of npm, Node.js, Corepack, or bundler fields and reordering remaining keys to a canonical order. Behavior is controlled per-workspace via recipe settings in nova.config.json.
Recipe Settings
| Setting | Default | Description |
|---|---|---|
removeUnknownKeys | true | Remove keys not recognized by npm, Node.js, Corepack, or bundlers. |
reorderKeys | true | Reorder keys to a canonical sort order. |
Usage
- nova (installed)
- npx (no install)
nova recipe package-json cleanup [options]
npx --yes @cbnventures/nova@latest recipe package-json cleanup [options]
Options
| Flag | Description |
|---|---|
-d, --dry-run | Preview changes without modifying files. |
-r, --replace-file | Overwrite the original file instead of creating a backup. |
Unsupported Keys
During cleanup, this recipe removes any package.json keys that are not in the known set of npm, Node.js, Corepack, or bundler fields. Disable this behavior per-workspace by setting removeUnknownKeys to false in the recipe settings.