Loading workspace insights... Statistics interval
7 days30 daysLatest CI Pipeline Executions
a88329da fix(core): handle nested-map targetDefaults in generators and migrations
The flat-array -> nested-map `targetDefaults` reshape left a number of
generator and migration source files reading or writing the old flat-array
shape, which no longer compiles against the map type
(`Record<string, TargetDefaultValue>`). Update them:
- "find existing default" helpers (angular setup-ssr, cypress init, jest/vitest
configuration, react application, eslint workspace-rules) now read the map
value and resolve an array value to its filter-less catch-all entry.
- Record-loop migrations (angular update-20-2-0/update-23-1-0, eslint
update-23-1-0, jest update-21-3-0/update-23-0-0, rollup update-23-0-0, vite
update-22-2-0/update-23-0-0, vitest update-22-6-0) skip array values (these
migrations predate the filtered array form, so values are plain objects).
- js update-22-0-0 uses the normalize/denormalize expand->collapse helpers;
the @nx/workspace `new` generator writes the nested-map object form.
- Adapt the two specs that fed the obsolete top-level array shape to the map.
`nx run-many -t build-base --all` is green (42 projects); the affected
generator/migration specs pass. a88329da fix(core): handle nested-map targetDefaults in generators and migrations
The flat-array -> nested-map `targetDefaults` reshape left a number of
generator and migration source files reading or writing the old flat-array
shape, which no longer compiles against the map type
(`Record<string, TargetDefaultValue>`). Update them:
- "find existing default" helpers (angular setup-ssr, cypress init, jest/vitest
configuration, react application, eslint workspace-rules) now read the map
value and resolve an array value to its filter-less catch-all entry.
- Record-loop migrations (angular update-20-2-0/update-23-1-0, eslint
update-23-1-0, jest update-21-3-0/update-23-0-0, rollup update-23-0-0, vite
update-22-2-0/update-23-0-0, vitest update-22-6-0) skip array values (these
migrations predate the filtered array form, so values are plain objects).
- js update-22-0-0 uses the normalize/denormalize expand->collapse helpers;
the @nx/workspace `new` generator writes the nested-map object form.
- Adapt the two specs that fed the obsolete top-level array shape to the map.
`nx run-many -t build-base --all` is green (42 projects); the affected
generator/migration specs pass.