@biffo/cli 0.56.0 → 0.56.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/core.version CHANGED
@@ -1 +1 @@
1
- 0.56.0
1
+ 0.56.2
package/dist/index.js CHANGED
@@ -1853,9 +1853,14 @@ var LOCKFILE_TRIGGERS = [
1853
1853
  ecosystem: "uv"
1854
1854
  }
1855
1855
  ];
1856
+ var NON_WORKSPACE_TREES = ["_skeletons"];
1857
+ function isForeignManifest(path) {
1858
+ return path.split("/").some((segment) => NON_WORKSPACE_TREES.includes(segment));
1859
+ }
1856
1860
  function lockfilesNeedingRefresh(changedPaths, instanceDir, triggers = LOCKFILE_TRIGGERS) {
1861
+ const locked = changedPaths.filter((p) => !isForeignManifest(p));
1857
1862
  return triggers.filter((t) => {
1858
- const touched = changedPaths.some((p) => p === t.manifest || p.endsWith(`/${t.manifest}`));
1863
+ const touched = locked.some((p) => p === t.manifest || p.endsWith(`/${t.manifest}`));
1859
1864
  return touched && existsSync7(join9(instanceDir, t.lockfile));
1860
1865
  });
1861
1866
  }
@@ -2037,7 +2042,7 @@ async function applyAndOpenPr(options, deps, plan, migrations, fromVersion, toVe
2037
2042
  4,
2038
2043
  `Applied ${applied.written.length} change(s), ${applied.deleted.length} deletion(s), ${carried.length} new migration(s)`
2039
2044
  );
2040
- const lockfiles = await refreshInstanceLockfiles(options.cwd, plan, deps);
2045
+ const lockfiles = await refreshInstanceLockfiles(options.cwd, applied, deps);
2041
2046
  await git.add(options.cwd, ["-A"]);
2042
2047
  await git.commit(options.cwd, `chore(core): upgrade template core ${fromVersion} -> ${toVersion}`);
2043
2048
  log.step(3, 4, `Pushing ${branch}`);
@@ -2165,11 +2170,8 @@ function printPlan(plan) {
2165
2170
  console.log(` ${color(e.status.padEnd(15))} ${e.path}`);
2166
2171
  }
2167
2172
  }
2168
- async function refreshInstanceLockfiles(cwd, plan, deps) {
2169
- const triggers = lockfilesNeedingRefresh(
2170
- plan.changes.map((c) => c.path),
2171
- cwd
2172
- );
2173
+ async function refreshInstanceLockfiles(cwd, applied, deps) {
2174
+ const triggers = lockfilesNeedingRefresh([...applied.written, ...applied.deleted], cwd);
2173
2175
  if (triggers.length === 0) return [];
2174
2176
  const run = deps.runCommand ?? defaultRunCommand;
2175
2177
  const outcomes = await refreshLockfiles(cwd, triggers, run);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biffo/cli",
3
- "version": "0.56.0",
3
+ "version": "0.56.2",
4
4
  "description": "Biffo project scaffolding CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",