@zwa73/dev-utils 1.0.65 → 1.0.66

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.
@@ -32,10 +32,6 @@ const pathe_1 = __importDefault(require("pathe"));
32
32
  const utils_1 = require("@zwa73/utils");
33
33
  const RouteInterface_1 = require("./RouteInterface");
34
34
  const InitDataPath = pathe_1.default.join(RouteInterface_1.DATA_PATH, 'CreateElectronFrame');
35
- (async () => {
36
- const filelist = await fs.promises.readdir(InitDataPath);
37
- console.log(filelist);
38
- })();
39
35
  /**复制基础文件 */
40
36
  async function copyData() {
41
37
  const filelist = await fs.promises.readdir(InitDataPath);
@@ -70,13 +70,10 @@ var UtilDT;
70
70
  .addSourceFileAtPath(fp)
71
71
  .getDescendantsOfKind(ts_morph_1.SyntaxKind.TypeAliasDeclaration)
72
72
  .map(d => d.getName())).flat();
73
- //console.log(types)
74
73
  const list = gener.getUserSymbols()
75
74
  .filter(t => types.some(i => i === t))
76
75
  .filter(t => it.some(i => i.test(t)))
77
76
  .filter(t => !et.some(i => i.test(t)));
78
- //console.log(list)
79
- //await UtilFT.writeJSONFile('testout',list);
80
77
  const schema = gener.getSchemaForSymbols(list);
81
78
  const outDir = opt?.outDir ?? pathe_1.default.join(process.cwd(), 'schema');
82
79
  const schemasPath = pathe_1.default.join(outDir, 'schemas.json');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwa73/dev-utils",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "description": "编译与调试工具",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,13 +9,6 @@ import { checkProject, DATA_PATH, MIRROR_SOURCE, PROJECT_PATH } from './RouteInt
9
9
 
10
10
  const InitDataPath = path.join(DATA_PATH,'CreateElectronFrame');
11
11
 
12
- (async ()=>{
13
-
14
-
15
- const filelist = await fs.promises.readdir(InitDataPath);
16
- console.log(filelist);
17
- })();
18
-
19
12
  /**复制基础文件 */
20
13
  async function copyData() {
21
14
  const filelist = await fs.promises.readdir(InitDataPath);
@@ -74,13 +74,10 @@ export async function generateSchema(dir:string,opt?:BuildSchemaOpt){
74
74
  .getDescendantsOfKind(SyntaxKind.TypeAliasDeclaration)
75
75
  .map(d=>d.getName())
76
76
  ).flat();
77
- //console.log(types)
78
77
  const list = gener.getUserSymbols()
79
78
  .filter(t=>types.some(i=>i===t))
80
79
  .filter(t=>it.some(i=>i.test(t)))
81
80
  .filter(t=>!et.some(i=>i.test(t)));
82
- //console.log(list)
83
- //await UtilFT.writeJSONFile('testout',list);
84
81
  const schema = gener.getSchemaForSymbols(list) as JObject;
85
82
  const outDir = opt?.outDir ?? path.join(process.cwd(),'schema');
86
83
  const schemasPath = path.join(outDir,'schemas.json');