@seanyao/roll 3.618.2 → 3.618.3
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/CHANGELOG.md +6 -0
- package/dist/roll.mjs +7 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/roll.mjs
CHANGED
|
@@ -11110,7 +11110,10 @@ function packageRoot() {
|
|
|
11110
11110
|
return dir;
|
|
11111
11111
|
}
|
|
11112
11112
|
function rollBin3() {
|
|
11113
|
-
|
|
11113
|
+
const devPath = join74(packageRoot(), "packages", "cli", "bin", "roll.js");
|
|
11114
|
+
if (existsSync74(devPath))
|
|
11115
|
+
return devPath;
|
|
11116
|
+
return "roll";
|
|
11114
11117
|
}
|
|
11115
11118
|
function runRoll(sandbox, rollHome4, args, opts = {}) {
|
|
11116
11119
|
const env = {
|
|
@@ -11123,7 +11126,9 @@ function runRoll(sandbox, rollHome4, args, opts = {}) {
|
|
|
11123
11126
|
} else {
|
|
11124
11127
|
env.ROLL_HOME = rollHome4;
|
|
11125
11128
|
}
|
|
11126
|
-
const
|
|
11129
|
+
const bin = rollBin3();
|
|
11130
|
+
const [cmd, cmdArgs] = bin === "roll" ? [bin, args] : [process.execPath, [bin, ...args]];
|
|
11131
|
+
const r = spawnSync10(cmd, cmdArgs, {
|
|
11127
11132
|
cwd: sandbox,
|
|
11128
11133
|
env,
|
|
11129
11134
|
encoding: "utf8",
|