codify-plugin-lib 1.0.182-beta41 → 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.
- package/dist/plugin/plugin.js +1 -1
- package/package.json +1 -1
- package/src/plugin/plugin.ts +1 -1
package/dist/plugin/plugin.js
CHANGED
|
@@ -29,7 +29,7 @@ export class Plugin {
|
|
|
29
29
|
const resourceLocations = await listAllResources();
|
|
30
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
package/src/plugin/plugin.ts
CHANGED
|
@@ -52,7 +52,7 @@ export class Plugin {
|
|
|
52
52
|
const resourceLocations = await listAllResources();
|
|
53
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
|
|