blob: 32a3165dce63c2b1300b32c0dcb13aa138f6bcab (
plain)
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
30
|
// 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 withPropertyFromMainRelease
from './withPropertyFromMainRelease.js';
export default templateCompositeFrom({
annotation: `inheritFromMainRelease`,
steps: () => [
raiseOutputWithoutDependency({
dependency: 'isSecondaryRelease',
mode: input.value('falsy'),
}),
withPropertyFromMainRelease({
property: input.thisProperty(),
}),
exposeDependency({
dependency: '#mainReleaseValue',
}),
],
});
|