@resourcexjs/cli 2.17.0 → 2.17.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.
package/dist/index.js CHANGED
@@ -780,8 +780,8 @@ import { promisify as promisify2 } from "util";
780
780
  import { gunzip } from "zlib";
781
781
  import { readdir as readdir2, readFile as readFile2, stat as stat2 } from "fs/promises";
782
782
  import { join as join2, relative as relative2 } from "path";
783
- import { dirname } from "path";
784
- import { fileURLToPath } from "url";
783
+ import { dirname, join as join3 } from "path";
784
+ import { fileURLToPath, pathToFileURL } from "url";
785
785
  import { createHash } from "crypto";
786
786
  function __exportSetter2(name, newValue) {
787
787
  this[name] = __returnValue2.bind(null, newValue);
@@ -4526,8 +4526,9 @@ class NpmSourceLoader {
4526
4526
  return { source, files: rxs.files };
4527
4527
  }
4528
4528
  resolvePackageDir(packageName) {
4529
+ const parent = pathToFileURL(join3(process.cwd(), "noop.js")).href;
4529
4530
  try {
4530
- const url2 = import.meta.resolve(`${packageName}/package.json`);
4531
+ const url2 = import.meta.resolve(`${packageName}/package.json`, parent);
4531
4532
  return dirname(fileURLToPath(url2));
4532
4533
  } catch {
4533
4534
  throw new ResourceXError(`Cannot resolve npm package: ${packageName}`);
@@ -14541,7 +14542,7 @@ import { mkdir as mkdir2, readdir as readdir22, readFile, rm, stat as stat22, un
14541
14542
  import { join as join22 } from "path";
14542
14543
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
14543
14544
  import { homedir } from "os";
14544
- import { dirname as dirname2, join as join3 } from "path";
14545
+ import { dirname as dirname2, join as join32 } from "path";
14545
14546
 
14546
14547
  class FileSystemRXAStore {
14547
14548
  basePath;
@@ -14767,8 +14768,8 @@ class NodeProvider {
14767
14768
  createStores(config2) {
14768
14769
  const basePath = config2.path ?? DEFAULT_BASE_PATH;
14769
14770
  return {
14770
- rxaStore: new FileSystemRXAStore(join3(basePath, "blobs")),
14771
- rxmStore: new FileSystemRXMStore(join3(basePath, "manifests"))
14771
+ rxaStore: new FileSystemRXAStore(join32(basePath, "blobs")),
14772
+ rxmStore: new FileSystemRXMStore(join32(basePath, "manifests"))
14772
14773
  };
14773
14774
  }
14774
14775
  createSourceLoader(_config) {
@@ -14780,7 +14781,7 @@ class NodeProvider {
14780
14781
  return { registry: envRegistry };
14781
14782
  }
14782
14783
  const basePath = config2.path ?? DEFAULT_BASE_PATH;
14783
- const configPath = join3(basePath, "config.json");
14784
+ const configPath = join32(basePath, "config.json");
14784
14785
  try {
14785
14786
  if (existsSync(configPath)) {
14786
14787
  const raw = JSON.parse(readFileSync(configPath, "utf-8"));
@@ -14797,7 +14798,7 @@ class NodeProvider {
14797
14798
  }
14798
14799
  configPath(config2) {
14799
14800
  const basePath = config2.path ?? DEFAULT_BASE_PATH;
14800
- return join3(basePath, "config.json");
14801
+ return join32(basePath, "config.json");
14801
14802
  }
14802
14803
  readConfig(config2) {
14803
14804
  const configPath = this.configPath(config2);
@@ -17536,4 +17537,4 @@ var main = defineCommand({
17536
17537
  });
17537
17538
  runMain(main);
17538
17539
 
17539
- //# debugId=0BEF2903254EFD9764756E2164756E21
17540
+ //# debugId=5C2365966C6E552164756E2164756E21