@tego/core 1.3.54-alpha.2 → 1.3.54-alpha.4
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/lib/plugin-manager/deps.js +1 -1
- package/lib/plugin.js +25 -1
- package/package.json +13 -13
package/lib/plugin.js
CHANGED
|
@@ -185,14 +185,38 @@ const _Plugin = class _Plugin {
|
|
|
185
185
|
*/
|
|
186
186
|
async loadCollections() {
|
|
187
187
|
if (!this.options.packageName) {
|
|
188
|
+
this.app.logger.debug(`[Plugin.loadCollections] packageName not set for plugin ${this.getName()}`, {
|
|
189
|
+
submodule: "Plugin",
|
|
190
|
+
method: "loadCollections"
|
|
191
|
+
});
|
|
188
192
|
return;
|
|
189
193
|
}
|
|
190
|
-
const
|
|
194
|
+
const resolvedPath = (0, import_helper.resolveRequest)(this.options.packageName);
|
|
195
|
+
const directory = (0, import_node_path.resolve)(resolvedPath, "../../server/collections");
|
|
196
|
+
this.app.logger.debug(`[Plugin.loadCollections] Loading collections for ${this.getName()}`, {
|
|
197
|
+
submodule: "Plugin",
|
|
198
|
+
method: "loadCollections",
|
|
199
|
+
packageName: this.options.packageName,
|
|
200
|
+
resolvedPath,
|
|
201
|
+
collectionsDirectory: directory,
|
|
202
|
+
directoryExists: await (0, import_utils.fsExists)(directory)
|
|
203
|
+
});
|
|
191
204
|
if (await (0, import_utils.fsExists)(directory)) {
|
|
192
205
|
await this.db.import({
|
|
193
206
|
directory,
|
|
194
207
|
from: this.options.packageName
|
|
195
208
|
});
|
|
209
|
+
this.app.logger.debug(`[Plugin.loadCollections] Successfully imported collections from ${directory}`, {
|
|
210
|
+
submodule: "Plugin",
|
|
211
|
+
method: "loadCollections"
|
|
212
|
+
});
|
|
213
|
+
} else {
|
|
214
|
+
this.app.logger.warn(`[Plugin.loadCollections] Collections directory not found: ${directory}`, {
|
|
215
|
+
submodule: "Plugin",
|
|
216
|
+
method: "loadCollections",
|
|
217
|
+
packageName: this.options.packageName,
|
|
218
|
+
resolvedPath
|
|
219
|
+
});
|
|
196
220
|
}
|
|
197
221
|
}
|
|
198
222
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tego/core",
|
|
3
|
-
"version": "1.3.54-alpha.
|
|
3
|
+
"version": "1.3.54-alpha.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"winston": "^3.17.0",
|
|
32
32
|
"ws": "^8.18.3",
|
|
33
33
|
"xpipe": "^1.0.8",
|
|
34
|
-
"@tachybase/actions": "1.3.54-alpha.
|
|
35
|
-
"@tachybase/auth": "1.3.54-alpha.
|
|
36
|
-
"@tachybase/acl": "1.3.54-alpha.
|
|
37
|
-
"@tachybase/cache": "1.3.54-alpha.
|
|
38
|
-
"@tachybase/
|
|
39
|
-
"@tachybase/
|
|
40
|
-
"@tachybase/
|
|
41
|
-
"@tachybase/
|
|
42
|
-
"@tachybase/
|
|
43
|
-
"@tachybase/
|
|
44
|
-
"@tachybase/
|
|
45
|
-
"@tachybase/
|
|
34
|
+
"@tachybase/actions": "1.3.54-alpha.4",
|
|
35
|
+
"@tachybase/auth": "1.3.54-alpha.4",
|
|
36
|
+
"@tachybase/acl": "1.3.54-alpha.4",
|
|
37
|
+
"@tachybase/cache": "1.3.54-alpha.4",
|
|
38
|
+
"@tachybase/database": "1.3.54-alpha.4",
|
|
39
|
+
"@tachybase/data-source": "1.3.54-alpha.4",
|
|
40
|
+
"@tachybase/globals": "1.3.54-alpha.4",
|
|
41
|
+
"@tachybase/loader": "1.3.54-alpha.4",
|
|
42
|
+
"@tachybase/di": "1.3.54-alpha.4",
|
|
43
|
+
"@tachybase/logger": "1.3.54-alpha.4",
|
|
44
|
+
"@tachybase/utils": "1.3.54-alpha.4",
|
|
45
|
+
"@tachybase/resourcer": "1.3.54-alpha.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/fs-extra": "11.0.4",
|