Repository navigation
refactor: add package.json exports to architect and schematics - #34108
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces explicit package exports maps in the package.json files for both @angular-devkit/architect and @angular-devkit/schematics to properly expose their subpaths (such as ./node, ./testing, ./tasks, and ./tools) and configuration files. It also adds corresponding API golden files for the newly exposed architect subpaths. The feedback recommends adding ./builders/builders.json to the exports map of @angular-devkit/architect to ensure compatibility with external tools resolving the builders file directly via its declared path.
Adds package.json exports fields to @angular-devkit/architect and @angular-devkit/schematics to explicitly define their public entry points and encapsulation in preparation for ESM conversion. @angular-devkit/architect exports the root, node, testing, builders.json, and package.json. @angular-devkit/schematics exports the root, tasks, testing, tools, collection-schema.json, and package.json. Also adds the corresponding public API golden definitions for @angular-devkit/architect.
aac154c to
1288984
Compare
|
This PR was merged into the repository. The changes were merged into the following branches:
|
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Adds package.json exports fields to @angular-devkit/architect and @angular-devkit/schematics to explicitly define their public entry points and encapsulation in preparation for ESM conversion.
@angular-devkit/architect exports the root, node, testing, builders.json, and package.json. @angular-devkit/schematics exports the root, tasks, testing, tools, collection-schema.json, and package.json. Also adds the corresponding public API golden definitions for @angular-devkit/architect.