@biffo/cli 0.276.6 → 0.276.8

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/dist/index.js +10 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2868,10 +2868,19 @@ function assertTargetFidelity(options) {
2868
2868
  for (const migration of options.migrations ?? []) {
2869
2869
  const path = `${MIGRATIONS_VERSIONS_DIR}/${migration.file}`;
2870
2870
  checked++;
2871
- if (!blobs.has(path)) {
2871
+ const expected = blobs.get(path);
2872
+ if (expected === void 0) {
2872
2873
  findings.push({ path, reason: "absent-from-tag", source: "migration" });
2873
2874
  continue;
2874
2875
  }
2876
+ const theirsAbs = join9(options.theirsDir, path);
2877
+ if (existsSync8(theirsAbs)) {
2878
+ const rawBytes = readFileSync6(theirsAbs);
2879
+ if (blobId(rawBytes) !== expected) {
2880
+ findings.push({ path, reason: "content-differs", source: "migration" });
2881
+ continue;
2882
+ }
2883
+ }
2875
2884
  let tagText;
2876
2885
  try {
2877
2886
  tagText = git(["-C", options.templateRepo, "show", `${tag}:${path}`]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biffo/cli",
3
- "version": "0.276.6",
3
+ "version": "0.276.8",
4
4
  "description": "Biffo project scaffolding CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",