@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.
@@ -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)({}.url));
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: {}.url });
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
  }