Skip to content

Commit 766593c

Browse files
committedMar 18, 2025
build: move @angular/build specific dependencies out of root
With the migration to `rules_js`, package specific dependencies now only need to be referenced with the source `package.json` for each specific package. Most of the `@angular/build` specific dependencies have now been moved. This is not exhaustive and further changes will continue to move additional dependencies.
1 parent fe69a9b commit 766593c

File tree

8 files changed

+53
-78
lines changed

8 files changed

+53
-78
lines changed
 

‎package.json

-12
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
},
4747
"homepage": "https://github.com/angular/angular-cli",
4848
"devDependencies": {
49-
"@ampproject/remapping": "2.3.0",
5049
"@angular/animations": "20.0.0-next.2",
5150
"@angular/cdk": "20.0.0-next.1",
5251
"@angular/common": "20.0.0-next.2",
@@ -134,19 +133,11 @@
134133
"karma-jasmine": "~5.1.0",
135134
"karma-jasmine-html-reporter": "~2.1.0",
136135
"karma-source-map-support": "1.4.0",
137-
"less": "4.2.2",
138136
"listr2": "8.2.5",
139-
"lmdb": "3.2.6",
140137
"lodash": "^4.17.21",
141-
"magic-string": "0.30.17",
142-
"mrmime": "2.0.1",
143-
"ng-packagr": "20.0.0-next.1",
144138
"npm": "^11.0.0",
145139
"open": "10.1.0",
146140
"ora": "5.4.1",
147-
"parse5-html-rewriting-stream": "7.0.0",
148-
"piscina": "4.9.0",
149-
"postcss": "8.5.3",
150141
"prettier": "^3.0.0",
151142
"protractor": "~7.0.0",
152143
"puppeteer": "18.2.1",
@@ -155,13 +146,11 @@
155146
"rollup-license-plugin": "~3.0.1",
156147
"rollup-plugin-sourcemaps": "^0.6.0",
157148
"rxjs": "7.8.2",
158-
"sass": "1.85.1",
159149
"semver": "7.7.1",
160150
"shelljs": "^0.9.0",
161151
"source-map-support": "0.5.21",
162152
"symbol-observable": "4.0.0",
163153
"tar": "^7.0.0",
164-
"tinyglobby": "0.2.12",
165154
"tree-kill": "1.2.2",
166155
"ts-node": "^10.9.1",
167156
"tslib": "2.8.1",
@@ -170,7 +159,6 @@
170159
"unenv": "^1.10.0",
171160
"verdaccio": "6.0.5",
172161
"verdaccio-auth-memory": "^10.0.0",
173-
"watchpack": "2.4.2",
174162
"yargs-parser": "21.1.1",
175163
"zone.js": "^0.15.0"
176164
},

‎packages/angular/build/BUILD.bazel

+15-15
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,28 @@ ts_project(
7474
data = RUNTIME_ASSETS,
7575
module_name = "@angular/build",
7676
deps = [
77+
":node_modules/@ampproject/remapping",
7778
":node_modules/@angular-devkit/architect",
7879
":node_modules/@angular-devkit/core",
7980
":node_modules/@angular/ssr",
8081
":node_modules/@inquirer/confirm",
8182
":node_modules/@vitejs/plugin-basic-ssl",
8283
":node_modules/jsonc-parser",
84+
":node_modules/less",
85+
":node_modules/listr2",
86+
":node_modules/lmdb",
87+
":node_modules/magic-string",
88+
":node_modules/mrmime",
89+
":node_modules/ng-packagr",
90+
":node_modules/parse5-html-rewriting-stream",
8391
":node_modules/picomatch",
92+
":node_modules/piscina",
93+
":node_modules/postcss",
94+
":node_modules/sass",
95+
":node_modules/source-map-support",
96+
":node_modules/tinyglobby",
8497
":node_modules/vite",
85-
"//:node_modules/@ampproject/remapping",
98+
":node_modules/watchpack",
8699
"//:node_modules/@angular/common",
87100
"//:node_modules/@angular/compiler",
88101
"//:node_modules/@angular/compiler-cli",
@@ -108,23 +121,10 @@ ts_project(
108121
"//:node_modules/https-proxy-agent",
109122
"//:node_modules/istanbul-lib-instrument",
110123
"//:node_modules/karma",
111-
"//:node_modules/less",
112-
"//:node_modules/listr2",
113-
"//:node_modules/lmdb",
114-
"//:node_modules/magic-string",
115-
"//:node_modules/mrmime",
116-
"//:node_modules/ng-packagr",
117-
"//:node_modules/parse5-html-rewriting-stream",
118-
"//:node_modules/piscina",
119-
"//:node_modules/postcss",
120124
"//:node_modules/rollup",
121-
"//:node_modules/sass",
122125
"//:node_modules/semver",
123-
"//:node_modules/source-map-support",
124-
"//:node_modules/tinyglobby",
125126
"//:node_modules/tslib",
126127
"//:node_modules/typescript",
127-
"//:node_modules/watchpack",
128128
],
129129
)
130130

@@ -204,7 +204,7 @@ ts_project(
204204
"//:node_modules/@angular/platform-browser",
205205
"//:node_modules/@angular/platform-browser-dynamic",
206206
"//:node_modules/@angular/router",
207-
"//:node_modules/ng-packagr",
207+
":node_modules/ng-packagr",
208208
"//:node_modules/rxjs",
209209
"//:node_modules/tslib",
210210
"//:node_modules/typescript",

‎packages/angular/build/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@
5151
},
5252
"devDependencies": {
5353
"@angular/ssr": "workspace:*",
54-
"@angular-devkit/core": "workspace:*"
54+
"@angular-devkit/core": "workspace:*",
55+
"less": "4.2.2",
56+
"ng-packagr": "20.0.0-next.1",
57+
"postcss": "8.5.3"
5558
},
5659
"peerDependencies": {
5760
"@angular/compiler": "0.0.0-ANGULAR-FW-PEER-DEP",

‎packages/angular/pwa/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ ts_project(
3636
deps = [
3737
":node_modules/@angular-devkit/schematics",
3838
":node_modules/@schematics/angular",
39+
":node_modules/parse5-html-rewriting-stream",
3940
"//:node_modules/@types/node",
40-
"//:node_modules/parse5-html-rewriting-stream",
4141
],
4242
)
4343

‎packages/angular_devkit/build_angular/BUILD.bazel

+6-6
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ ts_project(
129129
data = RUNTIME_ASSETS,
130130
module_name = "@angular-devkit/build-angular",
131131
deps = [
132+
":node_modules/@ampproject/remapping",
132133
":node_modules/@angular-devkit/architect",
133134
":node_modules/@angular-devkit/build-webpack",
134135
":node_modules/@angular-devkit/core",
@@ -151,17 +152,21 @@ ts_project(
151152
":node_modules/license-webpack-plugin",
152153
":node_modules/loader-utils",
153154
":node_modules/mini-css-extract-plugin",
155+
":node_modules/ng-packagr",
156+
":node_modules/piscina",
157+
":node_modules/postcss",
154158
":node_modules/postcss-loader",
155159
":node_modules/resolve-url-loader",
160+
":node_modules/sass",
156161
":node_modules/sass-loader",
157162
":node_modules/source-map-loader",
163+
":node_modules/source-map-support",
158164
":node_modules/terser",
159165
":node_modules/webpack",
160166
":node_modules/webpack-dev-middleware",
161167
":node_modules/webpack-dev-server",
162168
":node_modules/webpack-merge",
163169
":node_modules/webpack-subresource-integrity",
164-
"//:node_modules/@ampproject/remapping",
165170
"//:node_modules/@angular/common",
166171
"//:node_modules/@angular/compiler-cli",
167172
"//:node_modules/@angular/core",
@@ -193,15 +198,10 @@ ts_project(
193198
"//:node_modules/istanbul-lib-instrument",
194199
"//:node_modules/karma",
195200
"//:node_modules/karma-source-map-support",
196-
"//:node_modules/ng-packagr",
197201
"//:node_modules/open",
198202
"//:node_modules/ora",
199-
"//:node_modules/piscina",
200-
"//:node_modules/postcss",
201203
"//:node_modules/rxjs",
202-
"//:node_modules/sass",
203204
"//:node_modules/semver",
204-
"//:node_modules/source-map-support",
205205
"//:node_modules/tree-kill",
206206
"//:node_modules/tslib",
207207
"//:node_modules/typescript",

‎packages/angular_devkit/build_angular/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@
6666
"esbuild": "0.25.1"
6767
},
6868
"devDependencies": {
69-
"undici": "7.5.0",
70-
"@angular/ssr": "workspace:*"
69+
"@angular/ssr": "workspace:*",
70+
"ng-packagr": "20.0.0-next.1",
71+
"undici": "7.5.0"
7172
},
7273
"peerDependencies": {
7374
"@angular/compiler-cli": "0.0.0-ANGULAR-FW-PEER-DEP",

‎packages/angular_devkit/schematics/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ ts_project(
2929
deps = [
3030
":node_modules/@angular-devkit/core",
3131
":node_modules/jsonc-parser",
32+
":node_modules/magic-string",
3233
"//:node_modules/@types/node",
33-
"//:node_modules/magic-string",
3434
"//:node_modules/rxjs",
3535
],
3636
)

‎pnpm-lock.yaml

+23-40
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Failed to load comments.