@aeriajs/entrypoint 0.0.58 → 0.0.60
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/index.js +4 -1
- package/dist/index.mjs +2 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -18,7 +18,10 @@ const getEntrypointPath = async () => {
|
|
|
18
18
|
};
|
|
19
19
|
exports.getEntrypointPath = getEntrypointPath;
|
|
20
20
|
const getEntrypoint = async () => {
|
|
21
|
-
|
|
21
|
+
const entrypoint = await (0, common_1.dynamicImport)(await (0, exports.getEntrypointPath)());
|
|
22
|
+
return entrypoint.default.default
|
|
23
|
+
? entrypoint.default
|
|
24
|
+
: entrypoint;
|
|
22
25
|
};
|
|
23
26
|
exports.getEntrypoint = getEntrypoint;
|
|
24
27
|
const internalGetCollections = async () => {
|
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,8 @@ export const getEntrypointPath = async () => {
|
|
|
15
15
|
return path.join(process.cwd(), aeriaMain || main);
|
|
16
16
|
};
|
|
17
17
|
export const getEntrypoint = async () => {
|
|
18
|
-
|
|
18
|
+
const entrypoint = await dynamicImport(await getEntrypointPath());
|
|
19
|
+
return entrypoint.default.default ? entrypoint.default : entrypoint;
|
|
19
20
|
};
|
|
20
21
|
const internalGetCollections = async () => {
|
|
21
22
|
const entrypoint = await getEntrypoint();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/entrypoint",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.60",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@aeriajs/types": "link:../types"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@aeriajs/common": "^0.0.
|
|
30
|
-
"@aeriajs/types": "^0.0.
|
|
29
|
+
"@aeriajs/common": "^0.0.59",
|
|
30
|
+
"@aeriajs/types": "^0.0.55"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"test": "echo skipping",
|