Skip to content

Commit

Permalink
build: do not auto install peer dependencies
Browse files Browse the repository at this point in the history
Avoid pnpm auto-installing peer dependencies. We want to be explicit about our versions used
for peer dependencies, avoiding potential mismatches. In addition, it ensures we can continue
to rely on peer dependency placeholders substituted via Bazel.
  • Loading branch information
devversion committed Jan 28, 2025
1 parent bbbc1eb commit fece30a
Show file tree
Hide file tree
Showing 3 changed files with 296 additions and 340 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @generated
# Input hashes for repository rule npm_translate_lock(name = "npm2", pnpm_lock = "@//:pnpm-lock.yaml").
# This file should be checked into version control along with the pnpm-lock.yaml file.
.npmrc=-2023857461
.npmrc=-1406867100
package.json=688000741
packages/angular/cli/package.json=349838588
packages/angular/pwa/package.json=-1352285148
Expand All @@ -13,6 +13,6 @@ packages/angular_devkit/schematics/package.json=673943597
packages/angular_devkit/schematics_cli/package.json=-356386813
packages/ngtools/webpack/package.json=-942726894
packages/schematics/angular/package.json=251715148
pnpm-lock.yaml=926343104
pnpm-lock.yaml=604009520
pnpm-workspace.yaml=1732591250
yarn.lock=969972397
5 changes: 5 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ engine-strict = false
# projects using rules_js so that pnpm outside of Bazel lays out a node_modules tree similar to what
# rules_js lays out under Bazel (without a hidden node_modules/.pnpm/node_modules)
hoist=false

# Avoid pnpm auto-installing peer dependencies. We want to be explicit about our versions used
# for peer dependencies, avoiding potential mismatches. In addition, it ensures we can continue
# to rely on peer dependency placeholders substituted via Bazel.
auto-install-peers=false
Loading

0 comments on commit fece30a

Please sign in to comment.