bunset 1.0.5 → 1.0.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.6
4
+
5
+ ### Bug Fixes
6
+
7
+ - exit cleanly when no packages have changes to commit
8
+
3
9
  ## 1.0.5
4
10
 
5
11
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunset",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "module": "src/index.ts",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -279,6 +279,11 @@ for (const pkg of packages) {
279
279
 
280
280
  const uniqueTags = [...new Set(tags)];
281
281
 
282
+ if (changedFiles.length === 0) {
283
+ console.log("No packages were updated. Nothing to do.");
284
+ process.exit(0);
285
+ }
286
+
282
287
  // Update lockfile after package.json versions changed
283
288
  await $`bun install --lockfile-only`.cwd(cwd).quiet();
284
289
  changedFiles.push(`${cwd}/bun.lock`);