@biffo/cli 0.298.42 → 0.298.44
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
|
@@ -15369,6 +15369,7 @@ function resolveGithubToken4() {
|
|
|
15369
15369
|
|
|
15370
15370
|
// src/lib/packaged-script-command.ts
|
|
15371
15371
|
import { spawnSync } from "child_process";
|
|
15372
|
+
import { chmodSync as chmodSync2, statSync as statSync17 } from "fs";
|
|
15372
15373
|
import { dirname as dirname12 } from "path";
|
|
15373
15374
|
import { fileURLToPath as fileURLToPath6 } from "url";
|
|
15374
15375
|
import { Command as Command27 } from "commander";
|
|
@@ -15392,11 +15393,16 @@ It ships with this package via cli/scripts/packaged-root-assets.mjs; if you are
|
|
|
15392
15393
|
}
|
|
15393
15394
|
|
|
15394
15395
|
// src/lib/packaged-script-command.ts
|
|
15395
|
-
function
|
|
15396
|
-
|
|
15396
|
+
function ensureExecutable(script) {
|
|
15397
|
+
try {
|
|
15398
|
+
const { mode } = statSync17(script);
|
|
15399
|
+
if ((mode & 73) === 0) chmodSync2(script, mode | 493);
|
|
15400
|
+
} catch {
|
|
15401
|
+
}
|
|
15397
15402
|
}
|
|
15398
15403
|
function runPackagedScript(script, args, cwd) {
|
|
15399
|
-
|
|
15404
|
+
ensureExecutable(script);
|
|
15405
|
+
const result = spawnSync(script, args, { stdio: "inherit", cwd });
|
|
15400
15406
|
return result.status === null ? 2 : result.status;
|
|
15401
15407
|
}
|
|
15402
15408
|
function packagedScriptCommand(spec) {
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|