@marktiderman/genesis-cli 1.13.1 → 1.13.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/dist/cli.js +3 -1
- package/dist/cli.js.map +1 -1
- package/dist/doctor.js +3 -1
- package/dist/doctor.js.map +1 -1
- package/dist/genesis-catalog.json +26 -11
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/vite.js +3 -1
- package/dist/vite.js.map +1 -1
- package/package.json +3 -3
package/dist/doctor.js
CHANGED
|
@@ -2603,7 +2603,9 @@ function checkChanges(ctx, pkg, json, base, mergeBase) {
|
|
|
2603
2603
|
}
|
|
2604
2604
|
const raw = json;
|
|
2605
2605
|
if (jsonBefore && (JSON.stringify(jsonBefore.genesis) !== JSON.stringify(raw.genesis) || JSON.stringify(jsonBefore.exports) !== JSON.stringify(raw.exports))) {
|
|
2606
|
-
const
|
|
2606
|
+
const appInRepo = path14.relative(top, realpathSync(ctx.root)).split(path14.sep).join("/");
|
|
2607
|
+
const candidates = [.../* @__PURE__ */ new Set(["features.ts", "src/features.ts", ...appInRepo ? [`${appInRepo}/features.ts`, `${appInRepo}/src/features.ts`] : []])];
|
|
2608
|
+
const registry = (git(top, ["diff", "--name-only", mergeBase, "--", ...candidates]) ?? "").trim();
|
|
2607
2609
|
if (!registry) ctx.report({ rule: "package-unversioned-change", level: "warn", file: `${pkg.rel}/package.json`, message: `${pkg.name}'s blocks or exports changed but features.ts didn't; update the features they belong to` });
|
|
2608
2610
|
}
|
|
2609
2611
|
if (bumped && !named && before !== null) {
|