@lsby/net-core 0.0.5 → 0.0.7

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.
@@ -203077,8 +203077,9 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
203077
203077
  "it('exit', async () => process.exit(0))",
203078
203078
  ""
203079
203079
  ].join("\n");
203080
- if (!(0, import_node_fs.existsSync)(outFilePath)) {
203081
- (0, import_node_fs.mkdirSync)(outFilePath, { recursive: true });
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 });
203082
203083
  }
203083
203084
  (0, import_node_fs.writeFileSync)(outFilePath, finalTestFile);
203084
203085
  }).run();
@@ -203082,8 +203082,9 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
203082
203082
  "it('exit', async () => process.exit(0))",
203083
203083
  ""
203084
203084
  ].join("\n");
203085
- if (!(0, import_node_fs.existsSync)(outFilePath)) {
203086
- (0, import_node_fs.mkdirSync)(outFilePath, { recursive: true });
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 });
203087
203088
  }
203088
203089
  (0, import_node_fs.writeFileSync)(outFilePath, finalTestFile);
203089
203090
  }).run();
@@ -203109,10 +203109,12 @@ 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
- if (!(0, import_node_fs.existsSync)(outputPathAbs)) {
203113
- (0, import_node_fs.mkdirSync)(outputPathAbs, { recursive: true });
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 });
203114
203115
  }
203115
- import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
203116
+ import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]
203117
+ `);
203116
203118
  await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
203117
203119
  }).run();
203118
203120
  }
@@ -203114,10 +203114,12 @@ 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
- if (!(0, import_node_fs.existsSync)(outputPathAbs)) {
203118
- (0, import_node_fs.mkdirSync)(outputPathAbs, { recursive: true });
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 });
203119
203120
  }
203120
- import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
203121
+ import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]
203122
+ `);
203121
203123
  await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
203122
203124
  }).run();
203123
203125
  }
@@ -203077,8 +203077,9 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
203077
203077
  "it('exit', async () => process.exit(0))",
203078
203078
  ""
203079
203079
  ].join("\n");
203080
- if (!(0, import_node_fs.existsSync)(outFilePath)) {
203081
- (0, import_node_fs.mkdirSync)(outFilePath, { recursive: true });
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 });
203082
203083
  }
203083
203084
  (0, import_node_fs.writeFileSync)(outFilePath, finalTestFile);
203084
203085
  }).run();
@@ -203082,8 +203082,9 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
203082
203082
  "it('exit', async () => process.exit(0))",
203083
203083
  ""
203084
203084
  ].join("\n");
203085
- if (!(0, import_node_fs.existsSync)(outFilePath)) {
203086
- (0, import_node_fs.mkdirSync)(outFilePath, { recursive: true });
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 });
203087
203088
  }
203088
203089
  (0, import_node_fs.writeFileSync)(outFilePath, finalTestFile);
203089
203090
  }).run();
@@ -203109,10 +203109,12 @@ 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
- if (!(0, import_node_fs.existsSync)(outputPathAbs)) {
203113
- (0, import_node_fs.mkdirSync)(outputPathAbs, { recursive: true });
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 });
203114
203115
  }
203115
- import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
203116
+ import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]
203117
+ `);
203116
203118
  await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
203117
203119
  }).run();
203118
203120
  }
@@ -203114,10 +203114,12 @@ 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
- if (!(0, import_node_fs.existsSync)(outputPathAbs)) {
203118
- (0, import_node_fs.mkdirSync)(outputPathAbs, { recursive: true });
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 });
203119
203120
  }
203120
- import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
203121
+ import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]
203122
+ `);
203121
203123
  await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
203122
203124
  }).run();
203123
203125
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  main
4
- } from "../../chunk-D2G3YVNR.js";
4
+ } from "../../chunk-U4JOS4H6.js";
5
5
  import "../../chunk-PLIWJ5OD.js";
6
6
  import "../../chunk-PLYBVQKK.js";
7
7
  import "../../chunk-VBXJIVYU.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  main
3
- } from "../../chunk-D2G3YVNR.js";
3
+ } from "../../chunk-U4JOS4H6.js";
4
4
  import "../../chunk-PLIWJ5OD.js";
5
5
  import "../../chunk-PLYBVQKK.js";
6
6
  import "../../chunk-VBXJIVYU.js";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  main
4
- } from "../../chunk-DB7BWSXE.js";
4
+ } from "../../chunk-G2KKFXUM.js";
5
5
  import "../../chunk-23CY3P3G.js";
6
6
  import "../../chunk-PLIWJ5OD.js";
7
7
  import "../../chunk-PLYBVQKK.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  main
3
- } from "../../chunk-DB7BWSXE.js";
3
+ } from "../../chunk-G2KKFXUM.js";
4
4
  import "../../chunk-23CY3P3G.js";
5
5
  import "../../chunk-PLIWJ5OD.js";
6
6
  import "../../chunk-PLYBVQKK.js";
@@ -88,10 +88,12 @@ 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
- if (!existsSync(outputPathAbs)) {
92
- mkdirSync(outputPathAbs, { recursive: true });
91
+ var outDir = path.dirname(outputPathAbs);
92
+ if (!existsSync(outDir)) {
93
+ mkdirSync(outDir, { recursive: true });
93
94
  }
94
- fs.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
95
+ fs.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]
96
+ `);
95
97
  await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
96
98
  }).run();
97
99
  }
@@ -81,8 +81,9 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
81
81
  "it('exit', async () => process.exit(0))",
82
82
  ""
83
83
  ].join("\n");
84
- if (!existsSync(outFilePath)) {
85
- mkdirSync(outFilePath, { recursive: true });
84
+ var outDir = path.dirname(outFilePath);
85
+ if (!existsSync(outDir)) {
86
+ mkdirSync(outDir, { recursive: true });
86
87
  }
87
88
  writeFileSync(outFilePath, finalTestFile);
88
89
  }).run();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lsby/net-core",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "require": "./dist/cjs/index.cjs",