@akanjs/devkit 0.9.40 → 0.9.42
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/builder.js +2 -2
- package/cjs/src/commandDecorators/command.js +14 -3
- package/cjs/src/dependencyScanner.js +29 -3
- package/cjs/src/executors.js +170 -214
- package/cjs/src/index.js +3 -1
- package/cjs/src/scanInfo.js +487 -0
- package/esm/src/builder.js +2 -2
- package/esm/src/commandDecorators/command.js +14 -3
- package/esm/src/dependencyScanner.js +29 -3
- package/esm/src/executors.js +171 -219
- package/esm/src/index.js +1 -0
- package/esm/src/scanInfo.js +451 -0
- package/package.json +1 -1
- package/src/dependencyScanner.d.ts +13 -2
- package/src/executors.d.ts +44 -21
- package/src/index.d.ts +1 -0
- package/src/scanInfo.d.ts +93 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { type AppConfigResult, type AppScanResult, type LibConfigResult, type LibScanResult, type PkgScanResult, type ScanResult } from "@akanjs/config";
|
|
2
|
+
import { AppExecutor, LibExecutor, PkgExecutor, type WorkspaceExecutor } from "./executors";
|
|
3
|
+
declare const databaseFileTypes: readonly ["constant", "dictionary", "document", "service", "signal", "store", "template", "unit", "util", "view", "zone"];
|
|
4
|
+
type DatabaseFileType = (typeof databaseFileTypes)[number];
|
|
5
|
+
declare class ScanInfo {
|
|
6
|
+
protected scanResult: ScanResult;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly scalar: Map<string, Set<"constant" | "dictionary" | "document" | "template" | "unit" | "util" | "view" | "zone">>;
|
|
9
|
+
readonly service: Map<string, Set<"dictionary" | "template" | "unit" | "util" | "view" | "zone" | "service" | "signal" | "store">>;
|
|
10
|
+
readonly database: Map<string, Set<"constant" | "dictionary" | "document" | "template" | "unit" | "util" | "view" | "zone" | "service" | "signal" | "store">>;
|
|
11
|
+
readonly file: { [key in DatabaseFileType]: {
|
|
12
|
+
all: Set<string>;
|
|
13
|
+
databases: Set<string>;
|
|
14
|
+
services: Set<string>;
|
|
15
|
+
scalars: Set<string>;
|
|
16
|
+
}; };
|
|
17
|
+
readonly constants: Set<string>;
|
|
18
|
+
readonly dictionaries: Set<string>;
|
|
19
|
+
readonly documents: Set<string>;
|
|
20
|
+
readonly services: Set<string>;
|
|
21
|
+
readonly signals: Set<string>;
|
|
22
|
+
readonly stores: Set<string>;
|
|
23
|
+
readonly templates: Set<string>;
|
|
24
|
+
readonly units: Set<string>;
|
|
25
|
+
readonly utils: Set<string>;
|
|
26
|
+
readonly views: Set<string>;
|
|
27
|
+
readonly zones: Set<string>;
|
|
28
|
+
static getScanResult(exec: AppExecutor | LibExecutor): Promise<LibScanResult>;
|
|
29
|
+
constructor(scanResult: ScanResult);
|
|
30
|
+
getScanResult(): ScanResult;
|
|
31
|
+
getDatabaseModules(): string[];
|
|
32
|
+
getServiceModules(): string[];
|
|
33
|
+
getScalarModules(): string[];
|
|
34
|
+
}
|
|
35
|
+
export declare class AppInfo extends ScanInfo {
|
|
36
|
+
#private;
|
|
37
|
+
readonly type = "app";
|
|
38
|
+
readonly exec: AppExecutor;
|
|
39
|
+
readonly akanConfig: AppConfigResult;
|
|
40
|
+
static appInfos: Map<string, AppInfo>;
|
|
41
|
+
static fromExecutor(exec: AppExecutor, options?: {
|
|
42
|
+
refresh?: boolean;
|
|
43
|
+
}): Promise<AppInfo>;
|
|
44
|
+
constructor(exec: AppExecutor, scanResult: AppScanResult);
|
|
45
|
+
getScanResult(): AppScanResult;
|
|
46
|
+
getLibs(): string[];
|
|
47
|
+
getLibInfo(libName: string): LibInfo | undefined;
|
|
48
|
+
getLibInfos(): Map<string, LibInfo>;
|
|
49
|
+
}
|
|
50
|
+
export declare class LibInfo extends ScanInfo {
|
|
51
|
+
#private;
|
|
52
|
+
readonly type = "lib";
|
|
53
|
+
readonly exec: LibExecutor;
|
|
54
|
+
readonly akanConfig: LibConfigResult;
|
|
55
|
+
static loadedLibs: Set<string>;
|
|
56
|
+
static readonly libInfos: Map<string, LibInfo>;
|
|
57
|
+
static getSortedLibIndices(): Map<string, number>;
|
|
58
|
+
static fromExecutor(exec: LibExecutor, { refresh }?: {
|
|
59
|
+
refresh?: boolean;
|
|
60
|
+
}): Promise<LibInfo>;
|
|
61
|
+
constructor(exec: LibExecutor, scanResult: LibScanResult);
|
|
62
|
+
getScanResult(): LibScanResult;
|
|
63
|
+
getLibs(): string[];
|
|
64
|
+
getLibInfo(libName: string): LibInfo | undefined;
|
|
65
|
+
getLibInfos(): Map<string, LibInfo>;
|
|
66
|
+
}
|
|
67
|
+
export declare class PkgInfo {
|
|
68
|
+
#private;
|
|
69
|
+
readonly exec: PkgExecutor;
|
|
70
|
+
readonly name: string;
|
|
71
|
+
private scanResult;
|
|
72
|
+
static getScanResult(exec: PkgExecutor): Promise<{
|
|
73
|
+
name: string;
|
|
74
|
+
pkgDeps: string[];
|
|
75
|
+
dependencies: string[];
|
|
76
|
+
}>;
|
|
77
|
+
static fromExecutor(exec: PkgExecutor, options?: {
|
|
78
|
+
refresh?: boolean;
|
|
79
|
+
}): Promise<PkgInfo>;
|
|
80
|
+
constructor(exec: PkgExecutor, scanResult: PkgScanResult);
|
|
81
|
+
getScanResult(): PkgScanResult;
|
|
82
|
+
}
|
|
83
|
+
export declare class WorkspaceInfo {
|
|
84
|
+
#private;
|
|
85
|
+
readonly appInfos: Map<string, AppInfo>;
|
|
86
|
+
readonly libInfos: Map<string, LibInfo>;
|
|
87
|
+
readonly pkgInfos: Map<string, PkgInfo>;
|
|
88
|
+
constructor(appInfos?: Map<string, AppInfo>, libInfos?: Map<string, LibInfo>, pkgInfos?: Map<string, PkgInfo>);
|
|
89
|
+
static fromExecutor(exec: WorkspaceExecutor, options?: {
|
|
90
|
+
refresh?: boolean;
|
|
91
|
+
}): Promise<WorkspaceInfo>;
|
|
92
|
+
}
|
|
93
|
+
export {};
|