verteilen-core 1.2.15 → 1.2.16
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/dist/server/plugin.js +3 -3
- package/package.json +1 -1
- package/src/server/plugin.ts +3 -3
package/dist/server/plugin.js
CHANGED
|
@@ -7,8 +7,8 @@ const GetCurrentPlugin = async (loader) => {
|
|
|
7
7
|
plugins: [],
|
|
8
8
|
templates: []
|
|
9
9
|
};
|
|
10
|
-
const root = loader.join(loader.root, '
|
|
11
|
-
const root2 = loader.join(loader.root, '
|
|
10
|
+
const root = loader.join(loader.root, 'plugin');
|
|
11
|
+
const root2 = loader.join(loader.root, 'template');
|
|
12
12
|
if (!loader.exists(root))
|
|
13
13
|
await loader.mkdir(root);
|
|
14
14
|
if (!loader.exists(root2))
|
|
@@ -37,7 +37,7 @@ const GetCurrentPlugin = async (loader) => {
|
|
|
37
37
|
url: config.url
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
const files2 = (await loader.
|
|
40
|
+
const files2 = (await loader.read_dir_file(root2)).filter(x => x.endsWith('.json'));
|
|
41
41
|
const p_config2 = files2.map(file => {
|
|
42
42
|
return loader.read_string(loader.join(root2, file), { encoding: 'utf-8' });
|
|
43
43
|
});
|
package/package.json
CHANGED
package/src/server/plugin.ts
CHANGED
|
@@ -43,8 +43,8 @@ export const GetCurrentPlugin = async (loader:RecordIOBase):Promise<PluginPageDa
|
|
|
43
43
|
plugins: [],
|
|
44
44
|
templates: []
|
|
45
45
|
}
|
|
46
|
-
const root = loader.join(loader.root, '
|
|
47
|
-
const root2 = loader.join(loader.root, '
|
|
46
|
+
const root = loader.join(loader.root, 'plugin')
|
|
47
|
+
const root2 = loader.join(loader.root, 'template')
|
|
48
48
|
if(!loader.exists(root)) await loader.mkdir(root)
|
|
49
49
|
if(!loader.exists(root2)) await loader.mkdir(root2)
|
|
50
50
|
|
|
@@ -73,7 +73,7 @@ export const GetCurrentPlugin = async (loader:RecordIOBase):Promise<PluginPageDa
|
|
|
73
73
|
})
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
const files2 = (await loader.
|
|
76
|
+
const files2 = (await loader.read_dir_file(root2)).filter(x => x.endsWith('.json'));
|
|
77
77
|
|
|
78
78
|
const p_config2 = files2.map(file => {
|
|
79
79
|
return loader.read_string(loader.join(root2, file), { encoding: 'utf-8' })
|