'use strict';
import { cliLogSubtitle } from '../../../fd-toolbox/logging/cli-logger.js';
import { exportBuildToSubmodule } from '../setup/sync-build-artifacts.js';
import { execCommand } from '../tools/exec.js';
import { npmCommands } from '../constants/npm-commands.js';
import { downloadRollupCache, uploadRollupCache } from '../setup/rollup-cache-cloud.js';

var __defProp=Object['defineProperty'],__name=(_0x39d0d5,_0x220c79)=>__defProp(_0x39d0d5,'name',{'value':_0x220c79,'configurable':!![]});async function buildPackage(){cliLogSubtitle('[2.7]\x20Building\x20package...'),await downloadRollupCache(),await Promise['all']([((async()=>{await execCommand(npmCommands['npmBuildCli']),await execCommand(npmCommands['npmPackCli']);})()),((async()=>{await execCommand(npmCommands['npmBuildFast']),await execCommand(npmCommands['npmPack']);})())]),await uploadRollupCache(),await exportBuildToSubmodule();}__name(buildPackage,'buildPackage');

export { buildPackage };
