UNPKG

sb-mig

Version:

CLI to rule the world. (and handle stuff related to Storyblok CMS)

7 lines (6 loc) 391 B
import { getFileContentWithRequire } from "../../utils/files.js"; import { syncRolesData } from "./roles.js"; export const syncRoles = async ({ specifiedRoles, dryRun }, config) => { const specifiedRolesContent = await Promise.all(specifiedRoles.map((roles) => getFileContentWithRequire({ file: roles.p }))); await syncRolesData({ roles: specifiedRolesContent, dryRun }, config); };