@lsby/net-core 0.0.5-beta.7 → 0.0.6
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/dist/bin/gen-test/bin.cjs +4 -0
- package/dist/bin/gen-test/index.cjs +4 -0
- package/dist/bin/gen-type/bin.cjs +4 -0
- package/dist/bin/gen-type/index.cjs +4 -0
- package/dist/cjs/bin/gen-test/bin.cjs +4 -0
- package/dist/cjs/bin/gen-test/index.cjs +4 -0
- package/dist/cjs/bin/gen-type/bin.cjs +4 -0
- package/dist/cjs/bin/gen-type/index.cjs +4 -0
- package/dist/esm/bin/gen-test/bin.js +1 -1
- package/dist/esm/bin/gen-test/index.js +1 -1
- package/dist/esm/bin/gen-type/bin.js +1 -1
- package/dist/esm/bin/gen-type/index.js +1 -1
- package/dist/esm/{chunk-2UKWFFJ4.js → chunk-A44XPZUN.js} +5 -1
- package/dist/esm/{chunk-553ZM42W.js → chunk-U4JOS4H6.js} +5 -1
- package/dist/esm/index.js +16 -16
- package/package.json +1 -1
|
@@ -203077,6 +203077,10 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
|
|
|
203077
203077
|
"it('exit', async () => process.exit(0))",
|
|
203078
203078
|
""
|
|
203079
203079
|
].join("\n");
|
|
203080
|
+
var outDir = import_node_path.default.dirname(outFilePath);
|
|
203081
|
+
if (!(0, import_node_fs.existsSync)(outDir)) {
|
|
203082
|
+
(0, import_node_fs.mkdirSync)(outDir, { recursive: true });
|
|
203083
|
+
}
|
|
203080
203084
|
(0, import_node_fs.writeFileSync)(outFilePath, finalTestFile);
|
|
203081
203085
|
}).run();
|
|
203082
203086
|
}
|
|
@@ -203082,6 +203082,10 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
|
|
|
203082
203082
|
"it('exit', async () => process.exit(0))",
|
|
203083
203083
|
""
|
|
203084
203084
|
].join("\n");
|
|
203085
|
+
var outDir = import_node_path.default.dirname(outFilePath);
|
|
203086
|
+
if (!(0, import_node_fs.existsSync)(outDir)) {
|
|
203087
|
+
(0, import_node_fs.mkdirSync)(outDir, { recursive: true });
|
|
203088
|
+
}
|
|
203085
203089
|
(0, import_node_fs.writeFileSync)(outFilePath, finalTestFile);
|
|
203086
203090
|
}).run();
|
|
203087
203091
|
}
|
|
@@ -203109,6 +203109,10 @@ function main(tsconfigPath, apiFolderPath, outputPath) {
|
|
|
203109
203109
|
}
|
|
203110
203110
|
await log.debug("\u6210\u529F\u5904\u7406\u6240\u6709\u63A5\u53E3...").run();
|
|
203111
203111
|
const outputPathAbs = import_node_path.default.resolve(outputPath);
|
|
203112
|
+
var outDir = import_node_path.default.dirname(outputPathAbs);
|
|
203113
|
+
if (!(0, import_node_fs.existsSync)(outDir)) {
|
|
203114
|
+
(0, import_node_fs.mkdirSync)(outDir, { recursive: true });
|
|
203115
|
+
}
|
|
203112
203116
|
import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
|
|
203113
203117
|
await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
|
|
203114
203118
|
}).run();
|
|
@@ -203114,6 +203114,10 @@ function main(tsconfigPath, apiFolderPath, outputPath) {
|
|
|
203114
203114
|
}
|
|
203115
203115
|
await log.debug("\u6210\u529F\u5904\u7406\u6240\u6709\u63A5\u53E3...").run();
|
|
203116
203116
|
const outputPathAbs = import_node_path.default.resolve(outputPath);
|
|
203117
|
+
var outDir = import_node_path.default.dirname(outputPathAbs);
|
|
203118
|
+
if (!(0, import_node_fs.existsSync)(outDir)) {
|
|
203119
|
+
(0, import_node_fs.mkdirSync)(outDir, { recursive: true });
|
|
203120
|
+
}
|
|
203117
203121
|
import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
|
|
203118
203122
|
await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
|
|
203119
203123
|
}).run();
|
|
@@ -203077,6 +203077,10 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
|
|
|
203077
203077
|
"it('exit', async () => process.exit(0))",
|
|
203078
203078
|
""
|
|
203079
203079
|
].join("\n");
|
|
203080
|
+
var outDir = import_node_path.default.dirname(outFilePath);
|
|
203081
|
+
if (!(0, import_node_fs.existsSync)(outDir)) {
|
|
203082
|
+
(0, import_node_fs.mkdirSync)(outDir, { recursive: true });
|
|
203083
|
+
}
|
|
203080
203084
|
(0, import_node_fs.writeFileSync)(outFilePath, finalTestFile);
|
|
203081
203085
|
}).run();
|
|
203082
203086
|
}
|
|
@@ -203082,6 +203082,10 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
|
|
|
203082
203082
|
"it('exit', async () => process.exit(0))",
|
|
203083
203083
|
""
|
|
203084
203084
|
].join("\n");
|
|
203085
|
+
var outDir = import_node_path.default.dirname(outFilePath);
|
|
203086
|
+
if (!(0, import_node_fs.existsSync)(outDir)) {
|
|
203087
|
+
(0, import_node_fs.mkdirSync)(outDir, { recursive: true });
|
|
203088
|
+
}
|
|
203085
203089
|
(0, import_node_fs.writeFileSync)(outFilePath, finalTestFile);
|
|
203086
203090
|
}).run();
|
|
203087
203091
|
}
|
|
@@ -203109,6 +203109,10 @@ function main(tsconfigPath, apiFolderPath, outputPath) {
|
|
|
203109
203109
|
}
|
|
203110
203110
|
await log.debug("\u6210\u529F\u5904\u7406\u6240\u6709\u63A5\u53E3...").run();
|
|
203111
203111
|
const outputPathAbs = import_node_path.default.resolve(outputPath);
|
|
203112
|
+
var outDir = import_node_path.default.dirname(outputPathAbs);
|
|
203113
|
+
if (!(0, import_node_fs.existsSync)(outDir)) {
|
|
203114
|
+
(0, import_node_fs.mkdirSync)(outDir, { recursive: true });
|
|
203115
|
+
}
|
|
203112
203116
|
import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
|
|
203113
203117
|
await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
|
|
203114
203118
|
}).run();
|
|
@@ -203114,6 +203114,10 @@ function main(tsconfigPath, apiFolderPath, outputPath) {
|
|
|
203114
203114
|
}
|
|
203115
203115
|
await log.debug("\u6210\u529F\u5904\u7406\u6240\u6709\u63A5\u53E3...").run();
|
|
203116
203116
|
const outputPathAbs = import_node_path.default.resolve(outputPath);
|
|
203117
|
+
var outDir = import_node_path.default.dirname(outputPathAbs);
|
|
203118
|
+
if (!(0, import_node_fs.existsSync)(outDir)) {
|
|
203119
|
+
(0, import_node_fs.mkdirSync)(outDir, { recursive: true });
|
|
203120
|
+
}
|
|
203117
203121
|
import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
|
|
203118
203122
|
await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
|
|
203119
203123
|
}).run();
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
// src/bin/gen-type/index.ts
|
|
15
15
|
var import_typescript = __toESM(require_typescript(), 1);
|
|
16
16
|
import { randomUUID } from "node:crypto";
|
|
17
|
-
import fs from "node:fs";
|
|
17
|
+
import fs, { existsSync, mkdirSync } from "node:fs";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { Task } from "@lsby/ts-fp-data";
|
|
20
20
|
function main(tsconfigPath, apiFolderPath, outputPath) {
|
|
@@ -88,6 +88,10 @@ function main(tsconfigPath, apiFolderPath, outputPath) {
|
|
|
88
88
|
}
|
|
89
89
|
await log.debug("\u6210\u529F\u5904\u7406\u6240\u6709\u63A5\u53E3...").run();
|
|
90
90
|
const outputPathAbs = path.resolve(outputPath);
|
|
91
|
+
var outDir = path.dirname(outputPathAbs);
|
|
92
|
+
if (!existsSync(outDir)) {
|
|
93
|
+
mkdirSync(outDir, { recursive: true });
|
|
94
|
+
}
|
|
91
95
|
fs.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
|
|
92
96
|
await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
|
|
93
97
|
}).run();
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
|
|
11
11
|
// src/bin/gen-test/index.ts
|
|
12
12
|
var import_typescript = __toESM(require_typescript(), 1);
|
|
13
|
-
import fs, { writeFileSync } from "node:fs";
|
|
13
|
+
import fs, { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
import { Task } from "@lsby/ts-fp-data";
|
|
16
16
|
function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
|
|
@@ -81,6 +81,10 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
|
|
|
81
81
|
"it('exit', async () => process.exit(0))",
|
|
82
82
|
""
|
|
83
83
|
].join("\n");
|
|
84
|
+
var outDir = path.dirname(outFilePath);
|
|
85
|
+
if (!existsSync(outDir)) {
|
|
86
|
+
mkdirSync(outDir, { recursive: true });
|
|
87
|
+
}
|
|
84
88
|
writeFileSync(outFilePath, finalTestFile);
|
|
85
89
|
}).run();
|
|
86
90
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
JSON解析插件
|
|
3
|
-
} from "./chunk-OA4N72XG.js";
|
|
4
1
|
import {
|
|
5
2
|
表单解析插件
|
|
6
3
|
} from "./chunk-FBQ7H3IE.js";
|
|
7
4
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
正确JSON结果,
|
|
6
|
+
正确结果,
|
|
7
|
+
正确自定义结果,
|
|
8
|
+
结果,
|
|
9
|
+
错误JSON结果,
|
|
10
|
+
错误结果
|
|
11
|
+
} from "./chunk-6MRTDFSR.js";
|
|
10
12
|
import {
|
|
11
13
|
测试
|
|
12
14
|
} from "./chunk-ET2XZBZD.js";
|
|
15
|
+
import {
|
|
16
|
+
服务器
|
|
17
|
+
} from "./chunk-R4LHKMZP.js";
|
|
13
18
|
import {
|
|
14
19
|
接口类型
|
|
15
20
|
} from "./chunk-SF5Z34AP.js";
|
|
16
21
|
import {
|
|
17
22
|
接口
|
|
18
23
|
} from "./chunk-KRIDSMPV.js";
|
|
19
|
-
import {
|
|
20
|
-
正确JSON结果,
|
|
21
|
-
正确结果,
|
|
22
|
-
正确自定义结果,
|
|
23
|
-
结果,
|
|
24
|
-
错误JSON结果,
|
|
25
|
-
错误结果
|
|
26
|
-
} from "./chunk-6MRTDFSR.js";
|
|
27
|
-
import "./chunk-UX3PS2US.js";
|
|
28
|
-
import "./chunk-7FRLG3EW.js";
|
|
29
|
-
import "./chunk-PLYBVQKK.js";
|
|
30
24
|
import {
|
|
31
25
|
中文路径支持插件
|
|
32
26
|
} from "./chunk-2GISBUKY.js";
|
|
33
27
|
import {
|
|
34
28
|
自定义数据插件
|
|
35
29
|
} from "./chunk-Z4OJO6ZH.js";
|
|
30
|
+
import {
|
|
31
|
+
JSON解析插件
|
|
32
|
+
} from "./chunk-OA4N72XG.js";
|
|
33
|
+
import "./chunk-UX3PS2US.js";
|
|
34
|
+
import "./chunk-7FRLG3EW.js";
|
|
35
|
+
import "./chunk-PLYBVQKK.js";
|
|
36
36
|
import {
|
|
37
37
|
插件
|
|
38
38
|
} from "./chunk-KSZE2DTR.js";
|