// src/actions/package/compile/deepMerge.ts
function deepMerge(target, source) {
  for (const [key, sourceVal] of Object.entries(source)) {
    if (typeof sourceVal === "object" && sourceVal !== null && !Array.isArray(sourceVal)) {
      if (!Object.hasOwn(target, key) || typeof target[key] !== "object") {
        target[key] = {};
      }
      deepMerge(target[key], sourceVal);
    } else {
      target[key] = sourceVal;
    }
  }
  return target;
}
function deepMergeObjects(objects) {
  const result = {};
  for (const obj of objects) {
    deepMerge(result, obj);
  }
  return result;
}
export {
  deepMergeObjects
};
//# sourceMappingURL=deepMerge.mjs.map
