File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,7 @@ export function projectHasTarget(
10
10
project : ProjectGraphProjectNode ,
11
11
target : string
12
12
) {
13
- return ! ! (
14
- project . data &&
15
- project . data . targets &&
16
- project . data . targets [ target ]
17
- ) ;
13
+ return ! ! project ?. data ?. targets ?. [ target ] ;
18
14
}
19
15
20
16
export function projectHasTargetAndConfiguration (
@@ -24,17 +20,12 @@ export function projectHasTargetAndConfiguration(
24
20
) {
25
21
return (
26
22
projectHasTarget ( project , target ) &&
27
- project . data . targets [ target ] . configurations &&
28
- project . data . targets [ target ] . configurations [ configuration ]
23
+ project . data . targets [ target ] . configurations ?. [ configuration ]
29
24
) ;
30
25
}
31
26
32
27
export function projectHasTag ( project : ProjectGraphProjectNode , tag : string ) {
33
- return ! ! (
34
- project . data &&
35
- project . data . tags &&
36
- project . data . tags . includes ( tag )
37
- ) ;
28
+ return ! ! project ?. data ?. tags ?. includes ( tag ) ;
38
29
}
39
30
40
31
export function mergeNpmScriptsWithTargets (
You can’t perform that action at this time.
0 commit comments