openxiangda 1.0.52 → 1.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openxiangda",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "description": "OpenXiangda CLI, workspace build tools, runtime SDK, and form components.",
5
5
  "private": false,
6
6
  "bin": {
@@ -16,7 +16,7 @@
16
16
  import fs from "node:fs";
17
17
  import path from "node:path";
18
18
  import { pathToFileURL } from "node:url";
19
- import { buildSync } from "esbuild";
19
+ import { build } from "esbuild";
20
20
  import { loadConfig, getApiBaseUrl, rootDir } from "./utils/load-config.mjs";
21
21
  import {
22
22
  ensureSchemaFormUuid,
@@ -141,7 +141,7 @@ async function loadSchema(schemaPath) {
141
141
  const tmpFile = schemaPath.replace(/\.ts$/, ".tmp.mjs");
142
142
  try {
143
143
  // 使用 esbuild 将 .ts 打包为单文件 .mjs(解析所有依赖),再动态 import
144
- const result = buildSync({
144
+ const result = await build({
145
145
  entryPoints: [schemaPath],
146
146
  bundle: true,
147
147
  format: "esm",