Skip to content

Commit 7e47337

Browse files
committed
ci: Add warning to debug release script
1 parent 08b9ea6 commit 7e47337

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/bump-package-version.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if (currentVersion.startsWith('0.')) {
3737
bumpType = 'patch';
3838
}
3939
}
40-
await Bun.$`cd "${pkgDir}" && bun pm version ${bumpType}`;
40+
await Bun.$`bun pm version ${bumpType}`.cwd(pkgDir);
4141
const updatedPkgJson = await Bun.file(pkgJsonPath).json();
4242
const newVersion: string = updatedPkgJson.version;
4343
const newTag = getPkgTag(pkg, newVersion);
@@ -98,6 +98,10 @@ if (pkg === 'wxt') {
9898
templatePkgJsonPaths.push(templatePkgJsonPath);
9999
consola.success(`Updated wxt version in ${templatePkgJsonPath}`);
100100
}
101+
} else {
102+
console.warn(`No package.json found in ${templatePkgJsonPath}`, {
103+
cwd: process.cwd(),
104+
});
101105
}
102106
}
103107
}

0 commit comments

Comments
 (0)