@exadev/semantic-release-workspace 1.0.1 → 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 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.1";
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?.from !== from) 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
  };
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?.from !== from) 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
  };
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?.from !== from) 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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exadev/semantic-release-workspace",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Independent per-package semantic-release orchestration for pnpm workspaces, without lockstep versioning.",
5
5
  "type": "module",
6
6
  "repository": {