"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setupDependencies = setupDependencies;
const _checkType = null;
function setupDependencies(fn) {
    return async (effects) => {
        const dependencyType = await fn({ effects });
        return await effects.setDependencies({
            dependencies: Object.entries(dependencyType)
                .map(([k, v]) => [k, v])
                .map(([id, { versionRange, ...x }]) => ({
                id,
                ...x,
                versionRange: versionRange.toString(),
            })),
        });
    };
}
//# sourceMappingURL=setupDependencies.js.map