@biffo/cli 0.56.0 → 0.56.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.
- package/core.version +1 -1
- package/dist/index.js +9 -7
- package/package.json +1 -1
package/core.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.56.
|
|
1
|
+
0.56.1
|
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 =
|
|
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,
|
|
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,
|
|
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);
|