@akanjs/cli 0.0.128 → 0.0.129

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/index.js CHANGED
@@ -2462,11 +2462,8 @@ var LibraryScript = class {
2462
2462
  lib.logger.rawLog(JSON.stringify(scanResult, null, 2));
2463
2463
  return scanResult;
2464
2464
  }
2465
- async syncLibrary(lib, { recursive = true } = {}) {
2465
+ async syncLibrary(lib) {
2466
2466
  const akanConfig = await lib.getConfig();
2467
- if (recursive)
2468
- for (const libName of akanConfig.libs)
2469
- await this.syncLibrary(LibExecutor.from(lib.workspace, libName), { recursive: false });
2470
2467
  return await lib.scan({ akanConfig });
2471
2468
  }
2472
2469
  async createLibrary(libName, workspace) {
@@ -5158,12 +5155,10 @@ var ApplicationScript = class {
5158
5155
  app.logger.rawLog(JSON.stringify(scanResult, null, 2));
5159
5156
  return scanResult;
5160
5157
  }
5161
- async syncApplication(app, { recursive = true } = {}) {
5158
+ async syncApplication(app) {
5162
5159
  const akanConfig = await this.#runner.getConfig(app);
5163
- if (recursive)
5164
- for (const libName of akanConfig.libs)
5165
- await this.libraryScript.syncLibrary(LibExecutor.from(app, libName), { recursive: false });
5166
- return await this.#runner.scanSync(app, akanConfig);
5160
+ const scanResult = await this.#runner.scanSync(app, akanConfig);
5161
+ return scanResult;
5167
5162
  }
5168
5163
  async build(app) {
5169
5164
  await this.syncApplication(app);
@@ -26,7 +26,6 @@ function getContent(scanResult, dict = {}) {
26
26
  if (!scanResult)
27
27
  return null;
28
28
  const libs = scanResult.akanConfig.libs;
29
- console.log(scanResult.name, scanResult.libs);
30
29
  const userLibs = scanResult.akanConfig.libs.filter(
31
30
  (libName) => scanResult.libs[libName].files.constants.databases.includes("user")
32
31
  );
package/esm/index.js CHANGED
@@ -2449,11 +2449,8 @@ var LibraryScript = class {
2449
2449
  lib.logger.rawLog(JSON.stringify(scanResult, null, 2));
2450
2450
  return scanResult;
2451
2451
  }
2452
- async syncLibrary(lib, { recursive = true } = {}) {
2452
+ async syncLibrary(lib) {
2453
2453
  const akanConfig = await lib.getConfig();
2454
- if (recursive)
2455
- for (const libName of akanConfig.libs)
2456
- await this.syncLibrary(LibExecutor.from(lib.workspace, libName), { recursive: false });
2457
2454
  return await lib.scan({ akanConfig });
2458
2455
  }
2459
2456
  async createLibrary(libName, workspace) {
@@ -5145,12 +5142,10 @@ var ApplicationScript = class {
5145
5142
  app.logger.rawLog(JSON.stringify(scanResult, null, 2));
5146
5143
  return scanResult;
5147
5144
  }
5148
- async syncApplication(app, { recursive = true } = {}) {
5145
+ async syncApplication(app) {
5149
5146
  const akanConfig = await this.#runner.getConfig(app);
5150
- if (recursive)
5151
- for (const libName of akanConfig.libs)
5152
- await this.libraryScript.syncLibrary(LibExecutor.from(app, libName), { recursive: false });
5153
- return await this.#runner.scanSync(app, akanConfig);
5147
+ const scanResult = await this.#runner.scanSync(app, akanConfig);
5148
+ return scanResult;
5154
5149
  }
5155
5150
  async build(app) {
5156
5151
  await this.syncApplication(app);
@@ -3,7 +3,6 @@ function getContent(scanResult, dict = {}) {
3
3
  if (!scanResult)
4
4
  return null;
5
5
  const libs = scanResult.akanConfig.libs;
6
- console.log(scanResult.name, scanResult.libs);
7
6
  const userLibs = scanResult.akanConfig.libs.filter(
8
7
  (libName) => scanResult.libs[libName].files.constants.databases.includes("user")
9
8
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sourceType": "module",
3
3
  "name": "@akanjs/cli",
4
- "version": "0.0.128",
4
+ "version": "0.0.129",
5
5
  "bin": {
6
6
  "akan": "cjs/index.js"
7
7
  },
@@ -9,9 +9,7 @@ export declare class ApplicationScript {
9
9
  }): Promise<void>;
10
10
  removeApplication(app: App): Promise<void>;
11
11
  scanApplication(app: App, verbose?: boolean): Promise<import("@akanjs/config").AppScanResult | import("@akanjs/config").LibScanResult>;
12
- syncApplication(app: App, { recursive }?: {
13
- recursive?: boolean;
14
- }): Promise<import("@akanjs/config").AppScanResult | import("@akanjs/config").LibScanResult>;
12
+ syncApplication(app: App): Promise<import("@akanjs/config").AppScanResult | import("@akanjs/config").LibScanResult>;
15
13
  build(app: App): Promise<void>;
16
14
  start(app: App, { open }?: {
17
15
  open?: boolean;
@@ -2,9 +2,7 @@ import type { Lib, Workspace } from "@akanjs/devkit";
2
2
  export declare class LibraryScript {
3
3
  #private;
4
4
  scanLibrary(lib: Lib, verbose?: boolean): Promise<import("@akanjs/config").AppScanResult | import("@akanjs/config").LibScanResult>;
5
- syncLibrary(lib: Lib, { recursive }?: {
6
- recursive?: boolean;
7
- }): Promise<import("@akanjs/config").AppScanResult | import("@akanjs/config").LibScanResult>;
5
+ syncLibrary(lib: Lib): Promise<import("@akanjs/config").AppScanResult | import("@akanjs/config").LibScanResult>;
8
6
  createLibrary(libName: string, workspace: Workspace): Promise<void>;
9
7
  removeLibrary(lib: Lib): Promise<void>;
10
8
  installLibrary(workspace: Workspace, libName: string): Promise<void>;