From ba0b88d2e029eec194a7ad62a50bce593fb7f650 Mon Sep 17 00:00:00 2001 From: Rintaro Itokawa Date: Wed, 6 May 2026 23:49:02 +0900 Subject: [PATCH] fix: improve package.json detection --- get-changed-packages.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/get-changed-packages.ts b/get-changed-packages.ts index 2cc8522..b954c08 100644 --- a/get-changed-packages.ts +++ b/get-changed-packages.ts @@ -112,7 +112,7 @@ export const getChangedPackages = async ({ if (!item.path) { continue; } - if (item.path.endsWith("/package.json")) { + if (nodePath.basename(item.path) === "package.json") { const dirPath = nodePath.dirname(item.path); potentialWorkspaceDirectories.push(dirPath); } else if (item.path === "pnpm-workspace.yaml") { @@ -132,7 +132,10 @@ export const getChangedPackages = async ({ const id = res[1]; changesetPromises.push( - fetchTextFile(item.path).then((text) => ({ ...parseChangeset(text), id })), + fetchTextFile(item.path).then((text) => ({ + ...parseChangeset(text), + id, + })), ); } }