Skip to content

Commit 8fcefb8

Browse files
committed
build: migrate pnpm configuration to workspace settings and upgrade to version 11.1.1
With pnpm 11 configuration is soley done via the workspace file.
1 parent a93b78c commit 8fcefb8

12 files changed

Lines changed: 384 additions & 426 deletions

File tree

.npmrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

MODULE.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ use_repo(node, "nodejs_toolchains")
7373
pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm")
7474
pnpm.pnpm(
7575
name = "pnpm",
76-
pnpm_version = "10.33.4",
77-
pnpm_version_integrity = "sha512-HGezs1my1AgRm6HtKJ80uPw8aHNBK+xv0mT73IJInlEPy+y5zp0i2ufzt2Jp2EQQRgFL3KU7mXnNelYa1jG4AA==",
76+
pnpm_version = "11.1.1",
77+
pnpm_version_integrity = "sha512-0f319zxhe2T6GlaoHDyN/g6WbjOmAQqiVrUXrne+Idk+Ba/8DeGoOw5PKdVp9otEaujwaM1yR8C7PfD7TXvfmg==",
7878
)
7979
use_repo(pnpm, "pnpm")
8080

@@ -108,7 +108,6 @@ npm.npm_translate_lock(
108108
"//src/universal-app:package.json",
109109
"//src/youtube-player:package.json",
110110
],
111-
npmrc = "//:.npmrc",
112111
package_visibility = {
113112
"@angular/aria": [
114113
"//integration:__subpackages__",

docs/.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

integration/ng-add-standalone/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"watch": "ng build --watch --configuration development",
99
"test": "ng test"
1010
},
11+
"packageManager": "pnpm@11.1.1",
1112
"private": true,
1213
"dependencies": {
1314
"@angular/cdk": "next",

integration/ng-add-standalone/pnpm-workspace.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
packages:
22
- .
33

4+
allowBuilds:
5+
'@parcel/watcher': false
6+
esbuild: false
7+
lmdb: false
8+
msgpackr-extract: false
9+
410
# The minimum age of a release to be considered for dependency installation.
511
# The value is in minutes (1440 minutes = 1 day).
612
minimumReleaseAge: 1440
@@ -11,3 +17,10 @@ minimumReleaseAgeExclude:
1117
- '@ngtools/webpack'
1218
- '@schematics/*'
1319
- 'ng-packagr'
20+
21+
# TODO: Investigate why without minimumReleaseAgeStrict: false it fails with such errors:
22+
# [ERR_PNPM_MISSING_TIME] The metadata of @babel/helper-globals is missing the "time" field
23+
# This error happened while installing the dependencies of @angular-devkit/build-angular@22.0.0-next.7
24+
# at @babel/preset-env@7.29.2
25+
# at @babel/plugin-transform-classes@7.28.6
26+
minimumReleaseAgeStrict: false

integration/ng-add/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"watch": "ng build --watch --configuration development",
99
"test": "ng test"
1010
},
11+
"packageManager": "pnpm@11.1.1",
1112
"private": true,
1213
"dependencies": {
1314
"@angular/cdk": "next",

integration/ng-add/pnpm-workspace.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
packages:
22
- .
33

4+
allowBuilds:
5+
'@parcel/watcher': false
6+
esbuild: false
7+
lmdb: false
8+
msgpackr-extract: false
9+
410
# The minimum age of a release to be considered for dependency installation.
511
# The value is in minutes (1440 minutes = 1 day).
612
minimumReleaseAge: 1440
@@ -11,3 +17,10 @@ minimumReleaseAgeExclude:
1117
- '@ngtools/webpack'
1218
- '@schematics/*'
1319
- 'ng-packagr'
20+
21+
# TODO: Investigate why without minimumReleaseAgeStrict: false it fails with such errors:
22+
# [ERR_PNPM_MISSING_TIME] The metadata of @babel/helper-globals is missing the "time" field
23+
# This error happened while installing the dependencies of @angular-devkit/build-angular@22.0.0-next.7
24+
# at @babel/preset-env@7.29.2
25+
# at @babel/plugin-transform-classes@7.28.6
26+
minimumReleaseAgeStrict: false

integration/vitest/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"watch": "ng build --watch --configuration development",
99
"test": "ng test"
1010
},
11+
"packageManager": "pnpm@11.1.1",
1112
"private": true,
1213
"dependencies": {
1314
"@angular/cdk": "next",
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
11
packages:
22
- .
33

4+
allowBuilds:
5+
'@parcel/watcher': false
6+
esbuild: false
7+
lmdb: false
8+
msgpackr-extract: false
9+
410
# The minimum age of a release to be considered for dependency installation.
511
# The value is in minutes (1440 minutes = 1 day).
612
minimumReleaseAge: 1440
713
# List of packages to exclude from the minimum release age check.
814
minimumReleaseAgeExclude:
915
- '@angular-devkit/*'
1016
- '@angular/*'
17+
- '@ngtools/webpack'
1118
- '@schematics/*'
1219
- 'ng-packagr'
20+
21+
# TODO: Investigate why without minimumReleaseAgeStrict: false it fails with such errors:
22+
# [ERR_PNPM_MISSING_TIME] The metadata of @babel/helper-globals is missing the "time" field
23+
# This error happened while installing the dependencies of @angular-devkit/build-angular@22.0.0-next.7
24+
# at @babel/preset-env@7.29.2
25+
# at @babel/plugin-transform-classes@7.28.6
26+
minimumReleaseAgeStrict: false

package.json

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -150,63 +150,5 @@
150150
"yaml": "^2.8.1",
151151
"yargs": "^18.0.0",
152152
"zx": "^8.0.0"
153-
},
154-
"pnpm": {
155-
"overrides": {
156-
"typescript": "6.0.2",
157-
"@angular/core": "catalog:",
158-
"@angular/common": "catalog:",
159-
"@angular/forms": "catalog:",
160-
"@angular/platform-browser": "catalog:"
161-
},
162-
"onlyBuiltDependencies": [],
163-
"packageExtensions": {
164-
"dgeni-packages": {
165-
"dependencies": {
166-
"clonedeep": "*"
167-
}
168-
},
169-
"grpc-gcp": {
170-
"dependencies": {
171-
"protobufjs": "7.4.0"
172-
}
173-
},
174-
"@angular-eslint/eslint-plugin-template@19.3.0": {
175-
"peerDependencies": {
176-
"@typescript-eslint/parser": "*",
177-
"@angular-eslint/template-parser": "*"
178-
}
179-
},
180-
"@angular/common": {
181-
"dependencies": {
182-
"@nginfra/angular-linking": "1.0.11"
183-
}
184-
},
185-
"@angular/forms": {
186-
"dependencies": {
187-
"@nginfra/angular-linking": "1.0.11"
188-
}
189-
},
190-
"@angular/platform-browser": {
191-
"dependencies": {
192-
"@nginfra/angular-linking": "1.0.11"
193-
}
194-
},
195-
"@angular/router": {
196-
"dependencies": {
197-
"@nginfra/angular-linking": "1.0.11"
198-
}
199-
},
200-
"@angular/localize": {
201-
"dependencies": {
202-
"@nginfra/angular-linking": "1.0.11"
203-
}
204-
},
205-
"@angular/platform-server": {
206-
"dependencies": {
207-
"@nginfra/angular-linking": "1.0.11"
208-
}
209-
}
210-
}
211153
}
212154
}

0 commit comments

Comments
 (0)