zova-cli-set-front 1.2.61 → 1.2.63
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/cli/templates/rest/rest.ts +2 -2
- package/dist/index.js +4 -3
- package/package.json +8 -8
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type z from 'zod';
|
|
2
2
|
|
|
3
3
|
import { TypeFormSchemaScene } from 'zova-module-a-openapi';
|
|
4
|
-
import {
|
|
4
|
+
import { IResourceFormFieldLayoutOptions } from 'zova-module-a-openapi';
|
|
5
5
|
import { TypeSchemaScene } from 'zova-module-a-openapi';
|
|
6
6
|
import { TypeSchemaOrderLevel } from 'zova-module-a-openapi';
|
|
7
7
|
|
|
8
8
|
import { _generalSchemaRest, _order } from './inner.ts';
|
|
9
9
|
|
|
10
10
|
export function schemaRenderLayout<T extends z.ZodType>(
|
|
11
|
-
layoutOptions:
|
|
11
|
+
layoutOptions: IResourceFormFieldLayoutOptions,
|
|
12
12
|
scene?: TypeFormSchemaScene,
|
|
13
13
|
) {
|
|
14
14
|
return function (schema: T): T {
|
package/dist/index.js
CHANGED
|
@@ -352,14 +352,15 @@ class CliBinBuildRest extends BeanCliBase {
|
|
|
352
352
|
const outReleasesDir = path.join(projectPath, 'dist-releases', `rest-${flavor}-${process.env.APP_VERSION}`);
|
|
353
353
|
await fse.copy(outDir, outReleasesDir);
|
|
354
354
|
// copy
|
|
355
|
-
_copyToTarget(outDir, process.env.BUILD_REST_COPY_DIST, bundleNameCopy);
|
|
355
|
+
_copyToTarget(outDir, process.env.BUILD_REST_COPY_DIST, bundleNameCopy, projectPath);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function _copyToTarget(outDir, target, bundleNameCopy) {
|
|
358
|
+
function _copyToTarget(outDir, target, bundleNameCopy, projectPath) {
|
|
359
359
|
if (!target) return;
|
|
360
360
|
const dirs = target.split(',');
|
|
361
361
|
for (const dir of dirs) {
|
|
362
|
-
const
|
|
362
|
+
const dir2 = path.isAbsolute(dir) ? dir : path.join(projectPath, dir);
|
|
363
|
+
const outReleasesDirCopy = path.join(dir2, bundleNameCopy);
|
|
363
364
|
fse.removeSync(outReleasesDirCopy);
|
|
364
365
|
fse.copySync(outDir, outReleasesDirCopy, {
|
|
365
366
|
preserveTimestamps: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-cli-set-front",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.63",
|
|
4
4
|
"gitHead": "6f675a8cc46d596142c591c28a40cc4d82fcc6cc",
|
|
5
5
|
"description": "zova cli-set-front",
|
|
6
6
|
"keywords": [
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"@cabloy/utils": "^2.1.19",
|
|
37
37
|
"@cabloy/vite-plugin-babel": "^1.3.3",
|
|
38
38
|
"@cabloy/vue-babel-plugin-jsx": "^2.0.1",
|
|
39
|
-
"@cabloy/word-utils": "^2.1.
|
|
39
|
+
"@cabloy/word-utils": "^2.1.12",
|
|
40
40
|
"@typescript/native-preview": "^7.0.0-dev.20260320.1",
|
|
41
41
|
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
42
42
|
"babel-plugin-transform-typescript-metadata": "^0.4.0",
|
|
43
|
-
"babel-plugin-zova-bean-module": "^1.2.
|
|
44
|
-
"babel-plugin-zova-bean-use": "^1.1.
|
|
45
|
-
"babel-plugin-zova-behavior": "^1.1.
|
|
46
|
-
"babel-plugin-zova-component": "^1.1.
|
|
43
|
+
"babel-plugin-zova-bean-module": "^1.2.12",
|
|
44
|
+
"babel-plugin-zova-bean-use": "^1.1.12",
|
|
45
|
+
"babel-plugin-zova-behavior": "^1.1.12",
|
|
46
|
+
"babel-plugin-zova-component": "^1.1.12",
|
|
47
47
|
"compressing": "^1.10.0",
|
|
48
48
|
"fs-extra": "^11.3.5",
|
|
49
49
|
"globby": "^14.1.0",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"urllib": "^4.6.11",
|
|
58
58
|
"vite": "^8.0.2",
|
|
59
59
|
"yaml": "^2.8.3",
|
|
60
|
-
"zova-openapi": "^1.1.
|
|
61
|
-
"zova-vite": "^1.1.
|
|
60
|
+
"zova-openapi": "^1.1.12",
|
|
61
|
+
"zova-vite": "^1.1.30"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"clean": "rimraf dist dist-cli tsconfig.build.tsbuildinfo tsconfig.cli.tsbuildinfo",
|