@adobe/helix-config 5.1.2 → 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,10 @@
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
+
1
8
  ## [5.1.2](https://github.com/adobe/helix-config/compare/v5.1.1...v5.1.2) (2025-04-07)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "5.1.2",
3
+ "version": "5.1.3",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -298,13 +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
- if (rso.ref !== 'main') {
303
- const res2 = await ctx.loader.dirExists(HELIX_CODE_BUS, `${code.owner}/${code.repo}/${rso.ref}`);
304
- if (res2.status !== 200) {
305
- return null;
306
- }
307
- }
308
301
  site.updateLastModified(res.headers);
309
302
 
310
303
  // always load default profile if available
@@ -315,6 +308,15 @@ async function resolveConfig(ctx, rso, scope) {
315
308
  }
316
309
  const profile = await loadProfile(ctx, rso, site.data.extends.profile);
317
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
+
318
320
  const config = site.data;
319
321
  if (scope === SCOPE_PIPELINE) {
320
322
  config.metadata = {