UNPKG

projex

Version:
15 lines (14 loc) 628 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deploy = void 0; const _shared_1 = require("../../../../../shared/index"); const utils_1 = require("./utils"); const deploy = async (extension, site = _shared_1.VTEX_CMS_DEFAULT_SITE, options) => { const preConfirm = options.y || options.yes; const deployUtils = new utils_1.DeployUtils(site, preConfirm); const files = await deployUtils.getFilesToUpload(extension, preConfirm); await deployUtils.getLocalInformation(); // 4 Browse the files and use the endpoint deployUtils.prepare(files); }; exports.deploy = deploy;