File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,17 @@ 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
+ `The 'extract-i18n' builder requires the project type to be an application.` ,
41
+ ) ;
42
+
43
+ return { success : false } ;
44
+ }
45
+
35
46
// Check Angular version.
36
47
assertCompatibleAngularVersion ( context . workspaceRoot ) ;
37
48
Original file line number Diff line number Diff line change @@ -35,6 +35,17 @@ 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
+ `The 'extract-i18n' builder requires the project type to be an application.` ,
44
+ ) ;
45
+
46
+ return { success : false } ;
47
+ }
48
+
38
49
// Check Angular version.
39
50
assertCompatibleAngularVersion ( context . workspaceRoot ) ;
40
51
You can’t perform that action at this time.
0 commit comments