import { PlataBuild } from "++/libs/build" import path from 'path' export const main = async () => { const config = await PlataBuild.getBuildConfig() if (config.errorID !== undefined) { console.error(config) process.exit(1) } await PlataBuild.compile({ ...config, basePath: path.join(Plata.ProjectDir, '__RELEASE__'), mapFiles: true, packageJsonSetup: true, }) process.exit(0) }