semantic-release-lerna 2.6.0 → 2.6.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 +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17281,7 +17281,7 @@ function verify_config_default({ npmPublish, tarballDir, pkgRoot }) {
|
|
|
17281
17281
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
17282
17282
|
import { Buffer as Buffer3 } from "node:buffer";
|
|
17283
17283
|
import path3 from "node:path";
|
|
17284
|
-
import
|
|
17284
|
+
import childProcess from "node:child_process";
|
|
17285
17285
|
import process6 from "node:process";
|
|
17286
17286
|
|
|
17287
17287
|
// node_modules/execa/node_modules/strip-final-newline/index.js
|
|
@@ -18703,9 +18703,9 @@ function execa(file, args, options) {
|
|
|
18703
18703
|
validateTimeout(parsed.options);
|
|
18704
18704
|
let spawned;
|
|
18705
18705
|
try {
|
|
18706
|
-
spawned =
|
|
18706
|
+
spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);
|
|
18707
18707
|
} catch (error) {
|
|
18708
|
-
const dummySpawned = new
|
|
18708
|
+
const dummySpawned = new childProcess.ChildProcess();
|
|
18709
18709
|
const errorPromise = Promise.reject(makeError({
|
|
18710
18710
|
error,
|
|
18711
18711
|
stdout: "",
|
|
@@ -18780,7 +18780,7 @@ function execaSync(file, args, options) {
|
|
|
18780
18780
|
const input = handleInputSync(parsed.options);
|
|
18781
18781
|
let result;
|
|
18782
18782
|
try {
|
|
18783
|
-
result =
|
|
18783
|
+
result = childProcess.spawnSync(parsed.file, parsed.args, { ...parsed.options, input });
|
|
18784
18784
|
} catch (error) {
|
|
18785
18785
|
throw makeError({
|
|
18786
18786
|
error,
|
|
@@ -24175,8 +24175,8 @@ function parse(stdout, options = {}) {
|
|
|
24175
24175
|
const minimalShaRegex = /^([\da-f]{7,40})(-dirty)?$/;
|
|
24176
24176
|
if (minimalShaRegex.test(stdout)) {
|
|
24177
24177
|
const [, sha2, isDirty3] = minimalShaRegex.exec(stdout);
|
|
24178
|
-
const
|
|
24179
|
-
return { refCount:
|
|
24178
|
+
const revListResponse = execaSync("git", ["rev-list", "--count", sha2], options);
|
|
24179
|
+
return { refCount: revListResponse.stdout, sha: sha2, isDirty: Boolean(isDirty3) };
|
|
24180
24180
|
}
|
|
24181
24181
|
const result = /^((?:.*@)?(.*))-(\d+)-g([\da-f]+)(-dirty)?$/.exec(stdout) || [];
|
|
24182
24182
|
const [, lastTagName, lastVersion, refCount, sha, isDirty2] = result;
|