@akanjs/devkit 0.0.128 → 0.0.130

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.
@@ -316,9 +316,13 @@ class WorkspaceExecutor extends Executor {
316
316
  };
317
317
  }
318
318
  async getApps() {
319
+ if (!import_fs.default.existsSync(`${this.workspaceRoot}/apps`))
320
+ return [];
319
321
  return await this.#getDirHasFile(`${this.workspaceRoot}/apps`, "akan.config.ts");
320
322
  }
321
323
  async getLibs() {
324
+ if (!import_fs.default.existsSync(`${this.workspaceRoot}/libs`))
325
+ return [];
322
326
  return await this.#getDirHasFile(`${this.workspaceRoot}/libs`, "akan.config.ts");
323
327
  }
324
328
  async getSyss() {
@@ -326,6 +330,8 @@ class WorkspaceExecutor extends Executor {
326
330
  return [appNames, libNames];
327
331
  }
328
332
  async getPkgs() {
333
+ if (!import_fs.default.existsSync(`${this.workspaceRoot}/pkgs`))
334
+ return [];
329
335
  return await this.#getDirHasFile(`${this.workspaceRoot}/pkgs`, "package.json");
330
336
  }
331
337
  async getExecs() {
@@ -283,9 +283,13 @@ class WorkspaceExecutor extends Executor {
283
283
  };
284
284
  }
285
285
  async getApps() {
286
+ if (!fs.existsSync(`${this.workspaceRoot}/apps`))
287
+ return [];
286
288
  return await this.#getDirHasFile(`${this.workspaceRoot}/apps`, "akan.config.ts");
287
289
  }
288
290
  async getLibs() {
291
+ if (!fs.existsSync(`${this.workspaceRoot}/libs`))
292
+ return [];
289
293
  return await this.#getDirHasFile(`${this.workspaceRoot}/libs`, "akan.config.ts");
290
294
  }
291
295
  async getSyss() {
@@ -293,6 +297,8 @@ class WorkspaceExecutor extends Executor {
293
297
  return [appNames, libNames];
294
298
  }
295
299
  async getPkgs() {
300
+ if (!fs.existsSync(`${this.workspaceRoot}/pkgs`))
301
+ return [];
296
302
  return await this.#getDirHasFile(`${this.workspaceRoot}/pkgs`, "package.json");
297
303
  }
298
304
  async getExecs() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/devkit",
3
- "version": "0.0.128",
3
+ "version": "0.0.130",
4
4
  "sourceType": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -53,7 +53,7 @@ export declare class WorkspaceExecutor extends Executor {
53
53
  getBaseDevEnv(): {
54
54
  repoName: string;
55
55
  serveDomain: string;
56
- env: "testing" | "local" | "debug" | "develop" | "main";
56
+ env: "debug" | "testing" | "local" | "develop" | "main";
57
57
  name?: string | undefined;
58
58
  };
59
59
  scan(): Promise<WorkspaceScanResult>;