1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Early exits with the value for the same property as specified on the
// main release, if this track is a secondary release, and otherwise continues
// without providing any further dependencies.
import {input, templateCompositeFrom} from '#composite';
import {exposeDependency, raiseOutputWithoutDependency}
from '#composite/control-flow';
import {withPropertyFromObject} from '#composite/data';
export default templateCompositeFrom({
annotation: `inheritFromMainRelease`,
steps: () => [
raiseOutputWithoutDependency({
dependency: 'isSecondaryRelease',
mode: input.value('falsy'),
}),
withPropertyFromObject({
object: 'mainReleaseTrack',
property: input.thisProperty(),
}),
exposeDependency({
dependency: '#value',
}),
],
});
|