@elumixor/devkit 0.12.0 → 0.12.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/update.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elumixor/devkit",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Dev orchestrator for bun monorepos — free ports, run apps side-by-side, open the browser when ready",
5
5
  "author": "elumixor",
6
6
  "license": "ISC",
package/src/update.ts CHANGED
@@ -28,5 +28,6 @@ export async function runUpdate(dry = false) {
28
28
  console.log(`${manifest.name ?? "project"}: ${spec} -> ${pinned ? "" : "^"}${latest}`);
29
29
  if (dry) return;
30
30
  const flags = [...(dev ? ["-d"] : []), ...(pinned ? ["--exact"] : [])];
31
- await $`bun add ${flags} ${NAME}@${latest}`.quiet();
31
+ // `bun add` writes the spec verbatim, so a range has to be asked for as one.
32
+ await $`bun add ${flags} ${NAME}@${pinned ? "" : "^"}${latest}`.quiet();
32
33
  }