Skip to content

Commit b858647

Browse files
committed
refactor(@angular/build): extract-18n buildTarget option is no longer required
The `extract-i18n` option schema has been updated to reflect that the `buildTarget` option is not required. The option value will default to the `build` target of the containing project. This removes the need for an additional option and character count within the `angular.json` file for the project. (cherry picked from commit 3f8e09c)
1 parent b329103 commit b858647

File tree

2 files changed

+2
-3
lines changed
  • goldens/public-api/angular/build
  • packages/angular/build/src/builders/extract-i18n

2 files changed

+2
-3
lines changed

goldens/public-api/angular/build/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export function executeExtractI18nBuilder(options: ExtractI18nBuilderOptions, co
152152

153153
// @public
154154
export interface ExtractI18nBuilderOptions {
155-
buildTarget: string;
155+
buildTarget?: string;
156156
format?: Format;
157157
outFile?: string;
158158
outputPath?: string;

packages/angular/build/src/builders/extract-i18n/schema.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@
2929
"description": "Name of the file to output."
3030
}
3131
},
32-
"additionalProperties": false,
33-
"required": ["buildTarget"]
32+
"additionalProperties": false
3433
}

0 commit comments

Comments
 (0)