"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = make; const tslib_1 = require("tslib"); const tip_style_1 = require("./tip-style"); const localeBuilder_1 = tslib_1.__importDefault(require("oak-domain/lib/compiler/localeBuilder")); async function make(cmd) { (0, tip_style_1.Success)(`${(0, tip_style_1.success)(`make locales`)}`); const asLib = cmd.asLib; const watch = cmd.watch; try { const builder = new localeBuilder_1.default(!!asLib); builder.build(!!watch); (0, tip_style_1.Success)(`${(0, tip_style_1.success)(`make 执行完成`)}`); } catch (err) { (0, tip_style_1.Error)(`${(0, tip_style_1.error)(`make 执行失败`)}`); console.error(err); process.exit(-1); } }