@adobe/helix-config 5.1.1 → 5.1.3

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [5.1.3](https://github.com/adobe/helix-config/compare/v5.1.2...v5.1.3) (2025-04-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * merge profile first before checking code property ([#261](https://github.com/adobe/helix-config/issues/261)) ([2a21431](https://github.com/adobe/helix-config/commit/2a21431f7e34a6cda96eb9f1356b1f964d3590d2))
7
+
8
+ ## [5.1.2](https://github.com/adobe/helix-config/compare/v5.1.1...v5.1.2) (2025-04-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * skip branch test for 'main' branch ([#260](https://github.com/adobe/helix-config/issues/260)) ([2e6a6af](https://github.com/adobe/helix-config/commit/2e6a6af7c5cf0f63f8a7fefc325242e249b6e219))
14
+
1
15
  ## [5.1.1](https://github.com/adobe/helix-config/compare/v5.1.0...v5.1.1) (2025-04-05)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "5.1.1",
3
+ "version": "5.1.3",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -298,12 +298,6 @@ async function resolveConfig(ctx, rso, scope) {
298
298
  const site = new ConfigObject();
299
299
  site.data = res.json();
300
300
 
301
- const { code } = site.data;
302
- const res2 = await ctx.loader.dirExists(HELIX_CODE_BUS, `${code.owner}/${code.repo}/${rso.ref}`);
303
- if (res2.status !== 200) {
304
- return null;
305
- }
306
-
307
301
  site.updateLastModified(res.headers);
308
302
 
309
303
  // always load default profile if available
@@ -314,6 +308,15 @@ async function resolveConfig(ctx, rso, scope) {
314
308
  }
315
309
  const profile = await loadProfile(ctx, rso, site.data.extends.profile);
316
310
  site.merge(profile);
311
+
312
+ if (rso.ref !== 'main') {
313
+ const { code } = site.data;
314
+ const res2 = await ctx.loader.dirExists(HELIX_CODE_BUS, `${code.owner}/${code.repo}/${rso.ref}`);
315
+ if (res2.status !== 200) {
316
+ return null;
317
+ }
318
+ }
319
+
317
320
  const config = site.data;
318
321
  if (scope === SCOPE_PIPELINE) {
319
322
  config.metadata = {