Title: fix(schematics): require only exported devkit paths from the shipped schematics by armando-navarro · Pull Request #3793 · angular/angularfire · GitHub
Open Graph Title: fix(schematics): require only exported devkit paths from the shipped schematics by armando-navarro · Pull Request #3793 · angular/angularfire
X Title: fix(schematics): require only exported devkit paths from the shipped schematics by armando-navarro · Pull Request #3793 · angular/angularfire
Description: Fixes #3789 The shipped schematics now require @angular-devkit/schematics/tasks, which every devkit version accepts, instead of @angular-devkit/schematics/tasks/index.js, which the exports map in devkit 22.3 rejects. Changes All in compileSchematics in tools/build.ts. An esbuild alias rewrites @angular-devkit/schematics/tasks/index.js to @angular-devkit/schematics/tasks in the bundles. The two source files keep the index.js spelling, because the ESM spec run cannot import the bare tasks folder from the repo's devkit 21, which has no exports map. The build now fails if a bundle requires a subpath of an external package that is not listed in exportedSubpaths, and names the files that import it. The list holds @angular-devkit/schematics/tasks, @schematics/angular/utility and rxjs/operators, each of which is in its package's exports map. The external package list moves into a named externalPackages constant, which the check reads. Behavior to know When the repo's own devkit reaches 22.3 or later, the two source imports can switch to @angular-devkit/schematics/tasks and the alias can go. Verification With the package built from this branch, the setup, add, deploy builder, v7 migration and v21 migration bundles all load with @angular-devkit/schematics 21.2.25 and 22.3.0-next.0. With the current canary, setup/index.js, deploy/builder.js and update/v21/index.js fail under 22.3.0-next.0. Removing the alias fails the build with: The schematics require package paths that exportedSubpaths does not list: @angular-devkit/schematics/tasks/index.js, imported by src/schematics/utils.ts, src/schematics/update/v21/index.ts npm run test:node: 342 specs, 0 failures.
Open Graph Description: Fixes #3789 The shipped schematics now require @angular-devkit/schematics/tasks, which every devkit version accepts, instead of @angular-devkit/schematics/tasks/index.js, which the exports map in d...
X Description: Fixes #3789 The shipped schematics now require @angular-devkit/schematics/tasks, which every devkit version accepts, instead of @angular-devkit/schematics/tasks/index.js, which the exports map in d...
Opengraph URL: https://github.com/angular/angularfire/pull/3793
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:08391298-2870-5d99-cee1-7e32fdc64334 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DAAA:17C2FE:28E6E7D:3600BBE:6B038266 |
| html-safe-nonce | 7e081c41e74a8ee6c4d453241c5e96a1fe6017c40fb07fe5008ec65c0f2b2184 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUFBOjE3QzJGRToyOEU2RTdEOjM2MDBCQkU6NkIwMzgyNjYiLCJ2aXNpdG9yX2lkIjoiNjk0MzkxODYyMDExODI4MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a2afeafa5bde84ad5d6e30f76c2dd50887cef18d214ab2f35703a971b7724bda |
| hovercard-subject-tag | pull_request:4780000969 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/angular/angularfire/pull/3793/files |
| twitter:image | https://avatars.githubusercontent.com/u/13904589?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/13904589?s=400&v=4 |
| og:image:alt | Fixes #3789 The shipped schematics now require @angular-devkit/schematics/tasks, which every devkit version accepts, instead of @angular-devkit/schematics/tasks/index.js, which the exports map in d... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width