File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
packages/angular_devkit/build_angular/src Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ import { Schema as BrowserBuilderOptions } from '../browser/schema';
25
25
import { createI18nOptions } from '../utils/i18n-options' ;
26
26
import { assertCompatibleAngularVersion } from '../utils/version' ;
27
27
import { generateBrowserWebpackConfigFromContext } from '../utils/webpack-browser-config' ;
28
- import { Format , Schema as ExtractI18nBuilderOptions } from './schema' ;
28
+ import { Format , Schema } from './schema' ;
29
+
30
+ export type ExtractI18nBuilderOptions = Schema & JsonObject ;
29
31
30
32
function getI18nOutfile ( format : string | undefined ) {
31
33
switch ( format ) {
@@ -49,7 +51,7 @@ class InMemoryOutputPlugin {
49
51
}
50
52
}
51
53
52
- async function execute ( options : ExtractI18nBuilderOptions , context : BuilderContext ) {
54
+ export async function execute ( options : ExtractI18nBuilderOptions , context : BuilderContext ) {
53
55
// Check Angular version.
54
56
assertCompatibleAngularVersion ( context . workspaceRoot , context . logger ) ;
55
57
Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ export {
43
43
DevServerBuilderOutput ,
44
44
} from './dev-server' ;
45
45
46
+ export {
47
+ execute as executeExtractI18nBuilder ,
48
+ ExtractI18nBuilderOptions ,
49
+ } from './extract-i18n' ;
50
+
46
51
export {
47
52
execute as executeKarmaBuilder ,
48
53
KarmaBuilderOptions ,
You can’t perform that action at this time.
0 commit comments