@resourcexjs/cli 2.17.1 → 2.17.2
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 +3 -2
- package/dist/index.js.map +3 -3
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -4526,7 +4526,8 @@ class NpmSourceLoader {
|
|
|
4526
4526
|
return { source, files: rxs.files };
|
|
4527
4527
|
}
|
|
4528
4528
|
resolvePackageDir(packageName) {
|
|
4529
|
-
const
|
|
4529
|
+
const entry = globalThis.Bun?.main ?? process.argv[1] ?? join3(process.cwd(), "noop.js");
|
|
4530
|
+
const parent = pathToFileURL(entry).href;
|
|
4530
4531
|
try {
|
|
4531
4532
|
const url2 = import.meta.resolve(`${packageName}/package.json`, parent);
|
|
4532
4533
|
return dirname(fileURLToPath(url2));
|
|
@@ -17537,4 +17538,4 @@ var main = defineCommand({
|
|
|
17537
17538
|
});
|
|
17538
17539
|
runMain(main);
|
|
17539
17540
|
|
|
17540
|
-
//# debugId=
|
|
17541
|
+
//# debugId=D37BF1EEFFFDA7D564756E2164756E21
|