@cldmv/slothlet 3.0.0 → 3.0.1
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,7 +27,7 @@ import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
|
|
|
27
27
|
const __filename = fileURLToPath(import.meta.url);
|
|
28
28
|
const __dirname = path.dirname(__filename);
|
|
29
29
|
const SLOTHLET_LIB_ROOT = path.resolve(__dirname, "../..");
|
|
30
|
-
|
|
30
|
+
const SLOTHLET_PKG_ROOT = path.normalize(path.resolve(__dirname, "../../.."));
|
|
31
31
|
|
|
32
32
|
export class Resolver extends ComponentBase {
|
|
33
33
|
static slothletProperty = "resolver";
|
|
@@ -73,14 +73,17 @@ export class Resolver extends ComponentBase {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
const basename = path.basename(normalized);
|
|
77
|
-
|
|
78
76
|
|
|
79
77
|
|
|
80
78
|
|
|
81
79
|
|
|
80
|
+
const basename = path.basename(normalized);
|
|
82
81
|
if (basename === "index.mjs" || basename === "index.cjs") {
|
|
83
|
-
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
if (path.dirname(normalized) === SLOTHLET_PKG_ROOT) return true;
|
|
84
87
|
}
|
|
85
88
|
|
|
86
89
|
return false;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cldmv/slothlet",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"moduleVersions": {
|
|
5
|
-
"lazy": "
|
|
6
|
-
"eager": "
|
|
7
|
-
"async": "
|
|
8
|
-
"live": "
|
|
5
|
+
"lazy": "3.0.0",
|
|
6
|
+
"eager": "3.0.0",
|
|
7
|
+
"async": "3.0.0",
|
|
8
|
+
"live": "3.0.0"
|
|
9
9
|
},
|
|
10
10
|
"description": "Slothlet: Modular API Loader for Node.js. Lazy mode dynamically loads API modules and submodules only when accessed, supporting both lazy and eager loading.",
|
|
11
11
|
"main": "./index.cjs",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"build:unsafe": "npm run build:cleanup && npm run build:dist && npm run build:types && npm run build:exports && npm run test:types && npm run build:prepend-license",
|
|
146
146
|
"ci:cleanup-src": "node tools/ci/ci-cleanup-src.mjs",
|
|
147
147
|
"build:cleanup": "shx rm -rf types && shx rm -rf dist",
|
|
148
|
-
"build:dist": "shx mkdir -p dist &&
|
|
148
|
+
"build:dist": "shx mkdir -p dist && node tools/build/build-dist.mjs && shx rm -rf dist/**/*.backup",
|
|
149
149
|
"build:types": "npx tsc -p .configs/tsconfig.dts.jsonc",
|
|
150
150
|
"build:exports": "node tools/build/build-exports.mjs",
|
|
151
151
|
"build:prepend-license": "node tools/build/prepend-license.mjs dist",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-from-caller.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/resolve-from-caller.mjs"],"names":[],"mappings":"AAqCA;;;;;GAKG;AACH;IACC,gCAAqC;IAErC;;;;;OAKG;IACH,0CAUC;IAeD;;;;;OAKG;IACH,mBAJW,GAAG,GACD,MAAM,GAAC,IAAI,CAOvB;
|
|
1
|
+
{"version":3,"file":"resolve-from-caller.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/resolve-from-caller.mjs"],"names":[],"mappings":"AAqCA;;;;;GAKG;AACH;IACC,gCAAqC;IAErC;;;;;OAKG;IACH,0CAUC;IAeD;;;;;OAKG;IACH,mBAJW,GAAG,GACD,MAAM,GAAC,IAAI,CAOvB;IA+FD;;;;;OAKG;IACH,kCAJW,MAAM,GACJ,MAAM,CAsClB;;CACD;8BAvM6B,0CAA0C"}
|