openxiangda 1.0.52 → 1.0.54
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
|
@@ -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 {
|
|
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 =
|
|
144
|
+
const result = await build({
|
|
145
145
|
entryPoints: [schemaPath],
|
|
146
146
|
bundle: true,
|
|
147
147
|
format: "esm",
|
|
@@ -19,7 +19,12 @@
|
|
|
19
19
|
"typegen": "openxiangda resource typegen"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
+
"@ant-design/cssinjs": "^1.23.0",
|
|
23
|
+
"@ant-design/icons": "^6",
|
|
22
24
|
"@vitejs/plugin-react": "^4.3.0",
|
|
25
|
+
"antd": "^6.3.7",
|
|
26
|
+
"antd-mobile": "^5.37.0",
|
|
27
|
+
"dayjs": "^1.11.20",
|
|
23
28
|
"lucide-react": "^0.468.0",
|
|
24
29
|
"openxiangda": "latest",
|
|
25
30
|
"react": "18.3.1",
|