From 148de3b3a9b941c54307ca54f936ea86fb3c8bc8 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 8 Oct 2024 09:29:12 +0000 Subject: [PATCH] fix(@angular/build): move lmdb to optionalDependencies A warning mechanism has been implemented to notify users when lmdb is unavailable. On Windows ARM64 systems, however, installing this package with pnpm appears to cause installation failures. See: https://github.com/angular/angular-cli/issues/27882#issuecomment-2395029997 Closes #27882 --- packages/angular/build/package.json | 4 +++- yarn.lock | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/angular/build/package.json b/packages/angular/build/package.json index c99cfff342f0..e1bce867cf5e 100644 --- a/packages/angular/build/package.json +++ b/packages/angular/build/package.json @@ -33,7 +33,6 @@ "https-proxy-agent": "7.0.5", "istanbul-lib-instrument": "6.0.3", "listr2": "8.2.5", - "lmdb": "3.1.3", "magic-string": "0.30.11", "mrmime": "2.0.0", "parse5-html-rewriting-stream": "7.0.0", @@ -45,6 +44,9 @@ "vite": "5.4.8", "watchpack": "2.4.2" }, + "optionalDependencies": { + "lmdb": "3.1.3" + }, "peerDependencies": { "@angular/compiler": "^19.0.0-next.0", "@angular/compiler-cli": "^19.0.0-next.0", diff --git a/yarn.lock b/yarn.lock index f839ac56b573..7ce7ff16b0f1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -418,6 +418,9 @@ __metadata: postcss: ^8.4.0 tailwindcss: ^2.0.0 || ^3.0.0 typescript: ">=5.5 <5.7" + dependenciesMeta: + lmdb: + optional: true peerDependenciesMeta: "@angular/localize": optional: true