jarvis-arch-hexagonal-gen 1.0.7 → 1.0.8
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.
|
@@ -16,7 +16,6 @@ class PluginManager {
|
|
|
16
16
|
if (this.cache.has(pluginName))
|
|
17
17
|
return this.cache.get(pluginName);
|
|
18
18
|
const foundPath = this.findPluginPath(pluginName);
|
|
19
|
-
console.log(foundPath);
|
|
20
19
|
if (!foundPath) {
|
|
21
20
|
throw new Error(`Manifest não encontrado para o plugin "${pluginName}"`);
|
|
22
21
|
}
|
|
@@ -45,12 +44,9 @@ class PluginManager {
|
|
|
45
44
|
findPluginPath(pluginName) {
|
|
46
45
|
const search = (dir) => {
|
|
47
46
|
const items = fs_extra_1.default.readdirSync(dir);
|
|
48
|
-
console.log("item", JSON.stringify(items, null, 2));
|
|
49
47
|
for (const item of items) {
|
|
50
48
|
const fullPath = path_1.default.join(dir, item);
|
|
51
49
|
const stat = fs_extra_1.default.statSync(fullPath);
|
|
52
|
-
console.log("fullPath: ", fullPath);
|
|
53
|
-
console.log("stat: ", stat);
|
|
54
50
|
if (stat.isDirectory()) {
|
|
55
51
|
if (item === pluginName && fs_extra_1.default.existsSync(path_1.default.join(fullPath, 'manifest.json'))) {
|
|
56
52
|
return fullPath;
|