@orkestrel/scaffold 0.0.17 → 0.0.18
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/host/tests/setupPolicy.ts +4 -3
- package/dist/src/core/index.cjs +27 -31
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +1 -1
- package/dist/src/core/index.d.ts +1 -1
- package/dist/src/core/index.js +27 -31
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +2 -2
- package/dist/src/server/index.cjs.map +1 -1
- package/package.json +4 -4
|
@@ -1022,11 +1022,11 @@ function syncReportOf(target, guides, versions) {
|
|
|
1022
1022
|
* ```
|
|
1023
1023
|
*/
|
|
1024
1024
|
function hostRoot() {
|
|
1025
|
-
let dir = (0, node_path.dirname)((0, node_url.fileURLToPath)(
|
|
1025
|
+
let dir = (0, node_path.dirname)((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href));
|
|
1026
1026
|
for (;;) {
|
|
1027
1027
|
if ((0, node_fs.existsSync)((0, node_path.join)(dir, "package.json"))) return (0, node_path.join)(dir, "dist", "host");
|
|
1028
1028
|
const parent = (0, node_path.dirname)(dir);
|
|
1029
|
-
if (parent === dir) throw new _src_core.ScaffoldError("TARGET", "No package root found above the module location", { module:
|
|
1029
|
+
if (parent === dir) throw new _src_core.ScaffoldError("TARGET", "No package root found above the module location", { module: require("url").pathToFileURL(__filename).href });
|
|
1030
1030
|
dir = parent;
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|