@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/vite.js
CHANGED
|
@@ -2600,7 +2600,9 @@ function checkChanges(ctx, pkg, json, base, mergeBase) {
|
|
|
2600
2600
|
}
|
|
2601
2601
|
const raw = json;
|
|
2602
2602
|
if (jsonBefore && (JSON.stringify(jsonBefore.genesis) !== JSON.stringify(raw.genesis) || JSON.stringify(jsonBefore.exports) !== JSON.stringify(raw.exports))) {
|
|
2603
|
-
const
|
|
2603
|
+
const appInRepo = path14.relative(top, realpathSync(ctx.root)).split(path14.sep).join("/");
|
|
2604
|
+
const candidates = [.../* @__PURE__ */ new Set(["features.ts", "src/features.ts", ...appInRepo ? [`${appInRepo}/features.ts`, `${appInRepo}/src/features.ts`] : []])];
|
|
2605
|
+
const registry = (git(top, ["diff", "--name-only", mergeBase, "--", ...candidates]) ?? "").trim();
|
|
2604
2606
|
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` });
|
|
2605
2607
|
}
|
|
2606
2608
|
if (bumped && !named && before !== null) {
|