@akanjs/devkit 0.0.82 → 0.0.83

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/devkit",
3
- "version": "0.0.82",
3
+ "version": "0.0.83",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/executors.cjs CHANGED
@@ -518,7 +518,7 @@ class SysExecutor extends Executor {
518
518
  return { filepath, content };
519
519
  }
520
520
  async getDatabaseModules() {
521
- const databaseModules = (await import_promises.default.readdir(`${this.cwdPath}/lib`)).filter((name) => !name.startsWith("_")).filter((name) => import_fs.default.existsSync(`${this.cwdPath}/lib/${name}/${name}.constant.ts`));
521
+ const databaseModules = (await import_promises.default.readdir(`${this.cwdPath}/lib`)).filter((name) => !name.startsWith("_") && !name.startsWith("__") && !name.endsWith(".ts")).filter((name) => import_fs.default.existsSync(`${this.cwdPath}/lib/${name}/${name}.constant.ts`));
522
522
  return databaseModules;
523
523
  }
524
524
  async getServiceModules() {
@@ -529,6 +529,10 @@ class SysExecutor extends Executor {
529
529
  const scalarModules = (await import_promises.default.readdir(`${this.cwdPath}/lib/__scalar`)).filter((name) => !name.startsWith("_")).filter((name) => import_fs.default.existsSync(`${this.cwdPath}/lib/__scalar/${name}/${name}.constant.ts`));
530
530
  return scalarModules;
531
531
  }
532
+ async getViewModules() {
533
+ const viewModules = (await import_promises.default.readdir(`${this.cwdPath}/lib`)).filter((name) => !name.startsWith("_") && !name.startsWith("__") && !name.endsWith(".ts")).filter((name) => import_fs.default.existsSync(`${this.cwdPath}/lib/${name}/${name}.View.tsx`));
534
+ return viewModules;
535
+ }
532
536
  async getScalarConstantFiles() {
533
537
  const scalarModules = await this.getScalarModules();
534
538
  return scalarModules.map(
@@ -85,6 +85,7 @@ export declare class SysExecutor extends Executor {
85
85
  getDatabaseModules(): Promise<string[]>;
86
86
  getServiceModules(): Promise<string[]>;
87
87
  getScalarModules(): Promise<string[]>;
88
+ getViewModules(): Promise<string[]>;
88
89
  getScalarConstantFiles(): Promise<{
89
90
  filepath: string;
90
91
  content: string;
package/src/executors.js CHANGED
@@ -482,7 +482,7 @@ class SysExecutor extends Executor {
482
482
  return { filepath, content };
483
483
  }
484
484
  async getDatabaseModules() {
485
- const databaseModules = (await fsPromise.readdir(`${this.cwdPath}/lib`)).filter((name) => !name.startsWith("_")).filter((name) => fs.existsSync(`${this.cwdPath}/lib/${name}/${name}.constant.ts`));
485
+ const databaseModules = (await fsPromise.readdir(`${this.cwdPath}/lib`)).filter((name) => !name.startsWith("_") && !name.startsWith("__") && !name.endsWith(".ts")).filter((name) => fs.existsSync(`${this.cwdPath}/lib/${name}/${name}.constant.ts`));
486
486
  return databaseModules;
487
487
  }
488
488
  async getServiceModules() {
@@ -493,6 +493,10 @@ class SysExecutor extends Executor {
493
493
  const scalarModules = (await fsPromise.readdir(`${this.cwdPath}/lib/__scalar`)).filter((name) => !name.startsWith("_")).filter((name) => fs.existsSync(`${this.cwdPath}/lib/__scalar/${name}/${name}.constant.ts`));
494
494
  return scalarModules;
495
495
  }
496
+ async getViewModules() {
497
+ const viewModules = (await fsPromise.readdir(`${this.cwdPath}/lib`)).filter((name) => !name.startsWith("_") && !name.startsWith("__") && !name.endsWith(".ts")).filter((name) => fs.existsSync(`${this.cwdPath}/lib/${name}/${name}.View.tsx`));
498
+ return viewModules;
499
+ }
496
500
  async getScalarConstantFiles() {
497
501
  const scalarModules = await this.getScalarModules();
498
502
  return scalarModules.map(