UNPKG

@knapsack/app

Version:

Build Design Systems on top of knapsack, by Basalt

20 lines (16 loc) 483 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertV1ConfigToV2 = convertV1ConfigToV2; var _path = require("path"); var _serverUtils = require("../server/server-utils"); async function convertV1ConfigToV2({ data, assetSets }) { // @todo mv `knapsack.settings.json`.customSections => `knapsack.custom-pages.json`.sections await (0, _serverUtils.writeYaml)((0, _path.join)(data, 'knapsack.asset-sets.yml'), { assetSets }); }