@akanjs/devkit 0.0.129 → 0.0.131
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/cjs/src/executors.js +6 -0
- package/esm/src/executors.js +6 -0
- package/package.json +1 -1
package/cjs/src/executors.js
CHANGED
|
@@ -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() {
|
package/esm/src/executors.js
CHANGED
|
@@ -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() {
|