"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs_extra_1 = require("fs-extra");
const build_1 = require("../build");
(async () => {
    var _a;
    const result = await (0, build_1.build)({
        minify: true,
        sourcemap: false,
        bundle: true,
        logLevel: 'warning',
        entryPoints: ['src/client/platform/web/index.ts'],
        define: {
            'globalThis.env': '{"NODE_ENV": "production"}',
        },
        outfile: 'public/index.js',
        metafile: true,
    });
    await (0, fs_extra_1.writeFile)('public/build.json', JSON.stringify((_a = result.metafile) !== null && _a !== void 0 ? _a : {}));
    await (0, fs_extra_1.copy)('public/index.js', 'build/web.js');
})();
//# sourceMappingURL=client.js.map