hereby 1.6.1 → 1.6.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/cli/reexec.js +9 -0
- package/dist/cli/utils.js +1 -0
- package/package.json +1 -1
package/dist/cli/reexec.js
CHANGED
|
@@ -12,6 +12,15 @@ export async function reexec(d, herebyfilePath) {
|
|
|
12
12
|
//
|
|
13
13
|
// TODO: Rather than spawning a child process, perhaps we could instead
|
|
14
14
|
// import the CLI from the other version and run it.
|
|
15
|
+
if (d.isPnP) {
|
|
16
|
+
// When we are running within PnP, we can't really figure out what to
|
|
17
|
+
// do. import-meta-resolve doesn't implement this, so we can't do
|
|
18
|
+
// anything until import.meta.resolve is no longer experimental.
|
|
19
|
+
//
|
|
20
|
+
// Just assume that everything is okay; we will error later if there's
|
|
21
|
+
// a mismatch.
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
15
24
|
const thisCLI = await resolveToPath("hereby/cli", new URL(import.meta.url));
|
|
16
25
|
let otherCLI;
|
|
17
26
|
try {
|
package/dist/cli/utils.js
CHANGED