codify-plugin-lib 1.0.182-beta40 → 1.0.182-beta42

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.
@@ -27,9 +27,9 @@ export class Plugin {
27
27
  }
28
28
  const { name, version } = packageJson;
29
29
  const resourceLocations = await listAllResources();
30
- const resources = await Promise.all(resourceLocations.map((l) => {
30
+ const resources = (await Promise.all(resourceLocations.map((l) => {
31
31
  return import(l).then((r) => r.default ?? r);
32
- }));
32
+ }))).map((Resource) => new Resource());
33
33
  console.log(resources);
34
34
  const controllers = resources
35
35
  .map((resource) => new ResourceController(resource));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-plugin-lib",
3
- "version": "1.0.182-beta40",
3
+ "version": "1.0.182-beta42",
4
4
  "description": "Library plugin library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -50,9 +50,9 @@ export class Plugin {
50
50
  const { name, version } = packageJson;
51
51
 
52
52
  const resourceLocations = await listAllResources();
53
- const resources = await Promise.all(resourceLocations.map((l) => {
53
+ const resources = (await Promise.all(resourceLocations.map((l) => {
54
54
  return import(l).then((r) => r.default ?? r);
55
- }))
55
+ }))).map((Resource) => new Resource());
56
56
 
57
57
  console.log(resources);
58
58