From 25ff86777fbde0bcd89b51363631976fa8fbb3de Mon Sep 17 00:00:00 2001 From: MeAkib Date: Thu, 22 Oct 2026 17:55:33 +0600 Subject: [PATCH 1/2] docs(@angular/build): note tsconfig fallback for library `declarationMap` and `compilationMode` The library builder no longer sets schema defaults for `declarationMap` and `compilationMode`, so the values from the TypeScript configuration apply when the options are not set. The option descriptions did not mention this. Document the fallback, including the `partial` default for `compilationMode`. --- packages/angular/build/src/builders/library/schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/angular/build/src/builders/library/schema.json b/packages/angular/build/src/builders/library/schema.json index ee34936bdd62..98407441f5c9 100644 --- a/packages/angular/build/src/builders/library/schema.json +++ b/packages/angular/build/src/builders/library/schema.json @@ -71,11 +71,11 @@ }, "declarationMap": { "type": "boolean", - "description": "Generates a sourcemap for each corresponding '.d.ts' file." + "description": "Generates a sourcemap for each corresponding '.d.ts' file. Defaults to the `declarationMap` value in the TypeScript configuration file." }, "compilationMode": { "type": "string", - "description": "Angular compilation mode. Use 'partial' when publishing to npm (APF requirement). Use 'full' only during development or for private, internal monorepo packages that are never published.", + "description": "Angular compilation mode. Use 'partial' when publishing to npm (APF requirement). Use 'full' only during development or for private, internal monorepo packages that are never published. Defaults to the `angularCompilerOptions.compilationMode` value in the TypeScript configuration file, or 'partial' if not set.", "enum": ["partial", "full"] }, "allowedNonPeerDependencies": { From ef788f83629f708cba729e19aaf94d1970a90658 Mon Sep 17 00:00:00 2001 From: MeAkib Date: Thu, 22 Oct 2026 18:25:37 +0600 Subject: [PATCH 2/2] fixup! docs(@angular/build): note tsconfig fallback for library `declarationMap` and `compilationMode` --- packages/angular/build/src/builders/library/schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular/build/src/builders/library/schema.json b/packages/angular/build/src/builders/library/schema.json index 98407441f5c9..abbf8b752f9b 100644 --- a/packages/angular/build/src/builders/library/schema.json +++ b/packages/angular/build/src/builders/library/schema.json @@ -71,7 +71,7 @@ }, "declarationMap": { "type": "boolean", - "description": "Generates a sourcemap for each corresponding '.d.ts' file. Defaults to the `declarationMap` value in the TypeScript configuration file." + "description": "Generates a sourcemap for each corresponding '.d.ts' file. Defaults to the `compilerOptions.declarationMap` value in the TypeScript configuration file." }, "compilationMode": { "type": "string",