@aspruyt/xfg 5.3.0 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -132,6 +132,23 @@ export function resolveFileReferencesInConfig(raw, options) {
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
+
// Resolve conditional group file content
|
|
136
|
+
if (result.conditionalGroups) {
|
|
137
|
+
for (const cg of result.conditionalGroups) {
|
|
138
|
+
if (cg.files) {
|
|
139
|
+
for (const [fileName, fileConfig] of Object.entries(cg.files)) {
|
|
140
|
+
if (fileConfig &&
|
|
141
|
+
typeof fileConfig === "object" &&
|
|
142
|
+
"content" in fileConfig) {
|
|
143
|
+
const resolved = resolveContentValue(fileConfig.content, configDir);
|
|
144
|
+
if (resolved !== undefined) {
|
|
145
|
+
cg.files[fileName] = { ...fileConfig, content: resolved };
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
135
152
|
// Resolve per-repo file content
|
|
136
153
|
if (result.repos) {
|
|
137
154
|
for (const repo of result.repos) {
|
package/package.json
CHANGED