File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,18 @@ export async function execute(
32
32
return { success : false } ;
33
33
}
34
34
35
+ const { projectType } = ( await context . getProjectMetadata ( projectName ) ) as {
36
+ projectType ?: string ;
37
+ } ;
38
+ if ( projectType !== 'application' ) {
39
+ context . logger . error (
40
+ `Tried to extract from ${ projectName } with 'projectType' ${ projectType } , which is not supported.` +
41
+ ` The 'extract-i18n' builder can only extract from applications.` ,
42
+ ) ;
43
+
44
+ return { success : false } ;
45
+ }
46
+
35
47
// Check Angular version.
36
48
assertCompatibleAngularVersion ( context . workspaceRoot ) ;
37
49
Original file line number Diff line number Diff line change @@ -35,6 +35,18 @@ export async function execute(
35
35
return { success : false } ;
36
36
}
37
37
38
+ const { projectType } = ( await context . getProjectMetadata ( projectName ) ) as {
39
+ projectType ?: string ;
40
+ } ;
41
+ if ( projectType !== 'application' ) {
42
+ context . logger . error (
43
+ `Tried to extract from ${ projectName } with 'projectType' ${ projectType } , which is not supported.` +
44
+ ` The 'extract-i18n' builder can only extract from applications.` ,
45
+ ) ;
46
+
47
+ return { success : false } ;
48
+ }
49
+
38
50
// Check Angular version.
39
51
assertCompatibleAngularVersion ( context . workspaceRoot ) ;
40
52
You can’t perform that action at this time.
0 commit comments