Title: Move Schematic dependencies to `peerDependencies` or `devDependencies` · Issue #3694 · angular/angularfire · GitHub
Open Graph Title: Move Schematic dependencies to `peerDependencies` or `devDependencies` · Issue #3694 · angular/angularfire
X Title: Move Schematic dependencies to `peerDependencies` or `devDependencies` · Issue #3694 · angular/angularfire
Description: Description In src/package.json, @schematics/angular and @angular-devkit/schematics are currently listed under dependencies. Since these packages are only utilized for build-time tasks and schematic generation (found in src/schematics an...
Open Graph Description: Description In src/package.json, @schematics/angular and @angular-devkit/schematics are currently listed under dependencies. Since these packages are only utilized for build-time tasks and schemati...
X Description: Description In src/package.json, @schematics/angular and @angular-devkit/schematics are currently listed under dependencies. Since these packages are only utilized for build-time tasks and schemati...
Opengraph URL: https://github.com/angular/angularfire/issues/3694
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Move Schematic dependencies to `peerDependencies` or `devDependencies`","articleBody":"### **Description**\nIn `src/package.json`, `@schematics/angular` and `@angular-devkit/schematics` are currently listed under `dependencies`. Since these packages are only utilized for build-time tasks and schematic generation (found in `src/schematics` and `tools/`), they should not be included in production bundles.\n\nIncluding them in `dependencies` causes unnecessary bloat and, more critically, pulls in downstream vulnerabilities that wouldn't otherwise affect the production environment.\n\n### **Current Configuration**\n```json\n \"dependencies\": {\n \"firebase\": \"^12.4.0\",\n \"rxfire\": \"^6.1.0\",\n \"@angular-devkit/schematics\": \"^21.0.0\", // Move or Remove\n \"@schematics/angular\": \"^21.0.0\", // Move or Remove\n \"tslib\": \"^2.3.0\"\n },\n```\n\n### **Impact: Dependency Vulnerability**\nThis misconfiguration currently introduces a vulnerability via `picomatch`, which is a sub-dependency of the Angular devkit. Running a production-only dependency check confirms these are being pulled into the prod graph:\n\n```bash\n❯ pm why picomatch --prod\nUsing pnpm\npicomatch@4.0.3\n├─┬ @angular-devkit/core@21.2.0\n│ ├─┬ @angular-devkit/schematics@21.2.0\n│ │ └─┬ @schematics/angular@21.2.0\n│ │ └─┬ @angular/fire@21.0.0-rc.0\n│ │ └── @my-project/source@0.0.0 (dependencies)\n│ └── @schematics/angular@21.2.0 [deduped]\n└─┬ @angular-devkit/core@21.2.2\n └─┬ @angular-devkit/schematics@21.2.2\n └── @angular/fire@21.0.0-rc.0 [deduped]\n\nFound 1 version of picomatch\n```\n\n### **Proposed Solution**\n1. **Remove** `@schematics/angular` and `@angular-devkit/schematics` if they are only needed for generating code in local development. Any Angular project will have them.\n2. **Alternatively**, move them to `peerDependencies` (marked as optional if necessary).","author":{"url":"https://github.com/Ionaru","@type":"Person","name":"Ionaru"},"datePublished":"2026-03-31T14:18:28Z","url":"https://github.com/angular/angularfire/issues/3694"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:844b301b-98eb-2ce2-231e-0db6c5919acd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E098:90894:1365E68:18B3EB0:6B035C2E |
| html-safe-nonce | e4fdd0f138ab4ca65906e39aa61d713911bddc64b5e2aef5924d825c051fac81 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDk4OjkwODk0OjEzNjVFNjg6MThCM0VCMDo2QjAzNUMyRSIsInZpc2l0b3JfaWQiOiI5MDAzOTUyOTU3MDQ1MzAwMjcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1f49e9c16b925c72e9e9765b9b90b9958d0399df857612068b8f659dc0507249 |
| hovercard-subject-tag | issue:4179620772 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/angular/angularfire/3694/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ce0b39d3c3057a77ef7088cbbc9e3af855451dd23ba045252aba66e4b4cdac59/angular/angularfire/issues/3694 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ce0b39d3c3057a77ef7088cbbc9e3af855451dd23ba045252aba66e4b4cdac59/angular/angularfire/issues/3694 |
| og:image:alt | Description In src/package.json, @schematics/angular and @angular-devkit/schematics are currently listed under dependencies. Since these packages are only utilized for build-time tasks and schemati... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Ionaru |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| 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 | false |
| 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 |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width