Normalize Bundler
Normalize types, module, sideEffects, and esnext bundler convention fields in workspace package.json files.
Summary
The normalize-bundler recipe handles unofficial bundler convention fields in each workspace's package.json.
It merges the deprecated typings field into types, and normalizes module, sideEffects, and esnext fields according to common bundler expectations.
Behavior
For each eligible workspace, the recipe inspects bundler convention fields and applies the following rules. See Workspace Rules for how tags are determined.
typings→typesmerge (Conditional) — If both fields exist, the existingtypesvalue is kept andtypingsis deleted. If onlytypingsexists, it is renamed totypes.types(Conditional) — Removed if the workspace role does not allow it (onlypackageandtoolroles retain this field).module(Conditional) — Removed if the workspace role does not allow it (onlypackageandtoolroles retain this field).sideEffects(Conditional) — Removed if the workspace role does not allow it (onlypackageroles retain this field).esnext(Conditional) — Removed if the workspace role does not allow it (onlypackageroles retain this field).
Usage
Options
| Flag | Description |
|---|---|
-d, --dry-run | Preview changes without modifying files. |
-r, --replace-file | Overwrite the original file instead of creating a .nova-backup copy. |