Skip to content

Commit df1c78d

Browse files
authored
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`.
1 parent eb38ef3 commit df1c78d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/angular/build/src/builders/library/schema.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@
7171
},
7272
"declarationMap": {
7373
"type": "boolean",
74-
"description": "Generates a sourcemap for each corresponding '.d.ts' file."
74+
"description": "Generates a sourcemap for each corresponding '.d.ts' file. Defaults to the `compilerOptions.declarationMap` value in the TypeScript configuration file."
7575
},
7676
"compilationMode": {
7777
"type": "string",
78-
"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.",
78+
"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.",
7979
"enum": ["partial", "full"]
8080
},
8181
"allowedNonPeerDependencies": {

0 commit comments

Comments
 (0)