@akanjs/cli 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/index.js
CHANGED
|
@@ -1182,9 +1182,13 @@ var WorkspaceExecutor = class _WorkspaceExecutor extends Executor {
|
|
|
1182
1182
|
};
|
|
1183
1183
|
}
|
|
1184
1184
|
async getApps() {
|
|
1185
|
+
if (!import_fs4.default.existsSync(`${this.workspaceRoot}/apps`))
|
|
1186
|
+
return [];
|
|
1185
1187
|
return await this.#getDirHasFile(`${this.workspaceRoot}/apps`, "akan.config.ts");
|
|
1186
1188
|
}
|
|
1187
1189
|
async getLibs() {
|
|
1190
|
+
if (!import_fs4.default.existsSync(`${this.workspaceRoot}/libs`))
|
|
1191
|
+
return [];
|
|
1188
1192
|
return await this.#getDirHasFile(`${this.workspaceRoot}/libs`, "akan.config.ts");
|
|
1189
1193
|
}
|
|
1190
1194
|
async getSyss() {
|
|
@@ -1192,6 +1196,8 @@ var WorkspaceExecutor = class _WorkspaceExecutor extends Executor {
|
|
|
1192
1196
|
return [appNames, libNames];
|
|
1193
1197
|
}
|
|
1194
1198
|
async getPkgs() {
|
|
1199
|
+
if (!import_fs4.default.existsSync(`${this.workspaceRoot}/pkgs`))
|
|
1200
|
+
return [];
|
|
1195
1201
|
return await this.#getDirHasFile(`${this.workspaceRoot}/pkgs`, "package.json");
|
|
1196
1202
|
}
|
|
1197
1203
|
async getExecs() {
|
|
@@ -26,15 +26,19 @@ function getContent(scanResult, dict = {}) {
|
|
|
26
26
|
if (!scanResult)
|
|
27
27
|
return null;
|
|
28
28
|
const libs = scanResult.akanConfig.libs;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
);
|
|
29
|
+
console.log(scanResult);
|
|
30
|
+
const userLibs = scanResult.akanConfig.libs.filter((libName) => {
|
|
31
|
+
console.log(libName);
|
|
32
|
+
return scanResult.libs[libName].files.constants.databases.includes("user");
|
|
33
|
+
});
|
|
34
|
+
const settingLibs = scanResult.akanConfig.libs.filter((libName) => {
|
|
35
|
+
console.log(libName);
|
|
36
|
+
return scanResult.libs[libName].files.constants.databases.includes("setting");
|
|
37
|
+
});
|
|
38
|
+
const summaryLibs = scanResult.akanConfig.libs.filter((libName) => {
|
|
39
|
+
console.log(libName);
|
|
40
|
+
return scanResult.libs[libName].files.constants.databases.includes("summary");
|
|
41
|
+
});
|
|
38
42
|
return `
|
|
39
43
|
${libs.map((lib) => `import { cnst as ${lib} } from "@${lib}";`).join("\n")}
|
|
40
44
|
|
package/esm/index.js
CHANGED
|
@@ -1169,9 +1169,13 @@ var WorkspaceExecutor = class _WorkspaceExecutor extends Executor {
|
|
|
1169
1169
|
};
|
|
1170
1170
|
}
|
|
1171
1171
|
async getApps() {
|
|
1172
|
+
if (!fs6.existsSync(`${this.workspaceRoot}/apps`))
|
|
1173
|
+
return [];
|
|
1172
1174
|
return await this.#getDirHasFile(`${this.workspaceRoot}/apps`, "akan.config.ts");
|
|
1173
1175
|
}
|
|
1174
1176
|
async getLibs() {
|
|
1177
|
+
if (!fs6.existsSync(`${this.workspaceRoot}/libs`))
|
|
1178
|
+
return [];
|
|
1175
1179
|
return await this.#getDirHasFile(`${this.workspaceRoot}/libs`, "akan.config.ts");
|
|
1176
1180
|
}
|
|
1177
1181
|
async getSyss() {
|
|
@@ -1179,6 +1183,8 @@ var WorkspaceExecutor = class _WorkspaceExecutor extends Executor {
|
|
|
1179
1183
|
return [appNames, libNames];
|
|
1180
1184
|
}
|
|
1181
1185
|
async getPkgs() {
|
|
1186
|
+
if (!fs6.existsSync(`${this.workspaceRoot}/pkgs`))
|
|
1187
|
+
return [];
|
|
1182
1188
|
return await this.#getDirHasFile(`${this.workspaceRoot}/pkgs`, "package.json");
|
|
1183
1189
|
}
|
|
1184
1190
|
async getExecs() {
|
|
@@ -3,15 +3,19 @@ function getContent(scanResult, dict = {}) {
|
|
|
3
3
|
if (!scanResult)
|
|
4
4
|
return null;
|
|
5
5
|
const libs = scanResult.akanConfig.libs;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
);
|
|
6
|
+
console.log(scanResult);
|
|
7
|
+
const userLibs = scanResult.akanConfig.libs.filter((libName) => {
|
|
8
|
+
console.log(libName);
|
|
9
|
+
return scanResult.libs[libName].files.constants.databases.includes("user");
|
|
10
|
+
});
|
|
11
|
+
const settingLibs = scanResult.akanConfig.libs.filter((libName) => {
|
|
12
|
+
console.log(libName);
|
|
13
|
+
return scanResult.libs[libName].files.constants.databases.includes("setting");
|
|
14
|
+
});
|
|
15
|
+
const summaryLibs = scanResult.akanConfig.libs.filter((libName) => {
|
|
16
|
+
console.log(libName);
|
|
17
|
+
return scanResult.libs[libName].files.constants.databases.includes("summary");
|
|
18
|
+
});
|
|
15
19
|
return `
|
|
16
20
|
${libs.map((lib) => `import { cnst as ${lib} } from "@${lib}";`).join("\n")}
|
|
17
21
|
|