@exadev/semantic-release-workspace 1.0.0 → 1.0.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.js +8 -3
- package/dist/index.cjs +7 -2
- package/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ import validateNpmPackageName from "validate-npm-package-name";
|
|
|
13
13
|
import { glob } from "tinyglobby";
|
|
14
14
|
import { parse } from "yaml";
|
|
15
15
|
//#region package.json
|
|
16
|
-
var version = "1.0.
|
|
16
|
+
var version = "1.0.2";
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/errors.ts
|
|
19
19
|
/**
|
|
@@ -261,7 +261,11 @@ function createScopedPlugins(scope) {
|
|
|
261
261
|
let cached;
|
|
262
262
|
async function commitsForPackage(context) {
|
|
263
263
|
const from = context.lastRelease?.gitHead ?? void 0;
|
|
264
|
-
if (cached
|
|
264
|
+
if (cached === void 0) cached = {
|
|
265
|
+
from,
|
|
266
|
+
paths: changedPathsSince(from, { cwd: context.cwd })
|
|
267
|
+
};
|
|
268
|
+
else if (cached.from !== from) cached = {
|
|
265
269
|
from,
|
|
266
270
|
paths: changedPathsSince(from, { cwd: context.cwd })
|
|
267
271
|
};
|
|
@@ -634,6 +638,7 @@ async function releaseWorkspace(options = {}) {
|
|
|
634
638
|
const root = resolve(options.root ?? process.cwd());
|
|
635
639
|
const log = options.log ?? console.log;
|
|
636
640
|
const dryRun = options.dryRun === true;
|
|
641
|
+
const env = options.env ?? process.env;
|
|
637
642
|
const workspace = await discoverWorkspace(root);
|
|
638
643
|
const graph = buildDependencyGraph(workspace.packages);
|
|
639
644
|
validateDependencyRangeShapes(graph);
|
|
@@ -655,7 +660,7 @@ async function releaseWorkspace(options = {}) {
|
|
|
655
660
|
generateNotesConfig,
|
|
656
661
|
bumpsForThisPackage,
|
|
657
662
|
dryRun,
|
|
658
|
-
env
|
|
663
|
+
env,
|
|
659
664
|
branches: options.branches
|
|
660
665
|
});
|
|
661
666
|
const nextRelease = result === false ? void 0 : result.nextRelease;
|
package/dist/index.cjs
CHANGED
|
@@ -537,7 +537,11 @@ function createScopedPlugins(scope) {
|
|
|
537
537
|
let cached;
|
|
538
538
|
async function commitsForPackage(context) {
|
|
539
539
|
const from = context.lastRelease?.gitHead ?? void 0;
|
|
540
|
-
if (cached
|
|
540
|
+
if (cached === void 0) cached = {
|
|
541
|
+
from,
|
|
542
|
+
paths: changedPathsSince(from, { cwd: context.cwd })
|
|
543
|
+
};
|
|
544
|
+
else if (cached.from !== from) cached = {
|
|
541
545
|
from,
|
|
542
546
|
paths: changedPathsSince(from, { cwd: context.cwd })
|
|
543
547
|
};
|
|
@@ -647,6 +651,7 @@ async function releaseWorkspace(options = {}) {
|
|
|
647
651
|
const root = (0, node_path.resolve)(options.root ?? process.cwd());
|
|
648
652
|
const log = options.log ?? console.log;
|
|
649
653
|
const dryRun = options.dryRun === true;
|
|
654
|
+
const env = options.env ?? process.env;
|
|
650
655
|
const workspace = await discoverWorkspace(root);
|
|
651
656
|
const graph = buildDependencyGraph(workspace.packages);
|
|
652
657
|
validateDependencyRangeShapes(graph);
|
|
@@ -668,7 +673,7 @@ async function releaseWorkspace(options = {}) {
|
|
|
668
673
|
generateNotesConfig,
|
|
669
674
|
bumpsForThisPackage,
|
|
670
675
|
dryRun,
|
|
671
|
-
env
|
|
676
|
+
env,
|
|
672
677
|
branches: options.branches
|
|
673
678
|
});
|
|
674
679
|
const nextRelease = result === false ? void 0 : result.nextRelease;
|
package/dist/index.js
CHANGED
|
@@ -512,7 +512,11 @@ function createScopedPlugins(scope) {
|
|
|
512
512
|
let cached;
|
|
513
513
|
async function commitsForPackage(context) {
|
|
514
514
|
const from = context.lastRelease?.gitHead ?? void 0;
|
|
515
|
-
if (cached
|
|
515
|
+
if (cached === void 0) cached = {
|
|
516
|
+
from,
|
|
517
|
+
paths: changedPathsSince(from, { cwd: context.cwd })
|
|
518
|
+
};
|
|
519
|
+
else if (cached.from !== from) cached = {
|
|
516
520
|
from,
|
|
517
521
|
paths: changedPathsSince(from, { cwd: context.cwd })
|
|
518
522
|
};
|
|
@@ -622,6 +626,7 @@ async function releaseWorkspace(options = {}) {
|
|
|
622
626
|
const root = resolve(options.root ?? process.cwd());
|
|
623
627
|
const log = options.log ?? console.log;
|
|
624
628
|
const dryRun = options.dryRun === true;
|
|
629
|
+
const env = options.env ?? process.env;
|
|
625
630
|
const workspace = await discoverWorkspace(root);
|
|
626
631
|
const graph = buildDependencyGraph(workspace.packages);
|
|
627
632
|
validateDependencyRangeShapes(graph);
|
|
@@ -643,7 +648,7 @@ async function releaseWorkspace(options = {}) {
|
|
|
643
648
|
generateNotesConfig,
|
|
644
649
|
bumpsForThisPackage,
|
|
645
650
|
dryRun,
|
|
646
|
-
env
|
|
651
|
+
env,
|
|
647
652
|
branches: options.branches
|
|
648
653
|
});
|
|
649
654
|
const nextRelease = result === false ? void 0 : result.nextRelease;
|
package/package.json
CHANGED