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.
@@ -7,8 +7,8 @@ const GetCurrentPlugin = async (loader) => {
7
7
  plugins: [],
8
8
  templates: []
9
9
  };
10
- const root = loader.join(loader.root, 'template');
11
- const root2 = loader.join(loader.root, 'plugin');
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.read_dir_dir(root2)).filter(x => x.endsWith('.json'));
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verteilen-core",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
4
4
  "license": "MIT",
5
5
  "homepage": "https://verteilen.github.io/wiki/",
6
6
  "author": "Elly",
@@ -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, 'template')
47
- const root2 = loader.join(loader.root, 'plugin')
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.read_dir_dir(root2)).filter(x => x.endsWith('.json'));
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' })