@warpgogol/forge 4.1.1 → 4.1.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.
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</MODULE_CONTRACT>
|
|
9
9
|
<CHANGE_SUMMARY>
|
|
10
10
|
<item>Initial: forge.package.health validator — engines, CI workflow, extract config, devDeps completeness.</item>
|
|
11
|
-
<item>PKG-HEALTH-05: reject versionBump
|
|
11
|
+
<item>PKG-HEALTH-05: reject any versionBump in extract.config.yaml — version in package.json is source of truth.</item>
|
|
12
12
|
</CHANGE_SUMMARY>
|
|
13
13
|
*/
|
|
14
14
|
|
|
@@ -158,20 +158,19 @@ export async function runPackageHealth(
|
|
|
158
158
|
fixHint: "Create extract.config.yaml with git remote and extraction settings.",
|
|
159
159
|
});
|
|
160
160
|
} else {
|
|
161
|
-
// CHECK 3b: versionBump must
|
|
161
|
+
// CHECK 3b: versionBump must be absent — version in package.json is source of truth
|
|
162
162
|
try {
|
|
163
163
|
const configRaw = fs.readFileSync(extractConfigPath, "utf8");
|
|
164
164
|
const versionBumpMatch = configRaw.match(/^versionBump:\s*(\S+)/m);
|
|
165
|
-
if (versionBumpMatch
|
|
165
|
+
if (versionBumpMatch) {
|
|
166
166
|
violations.push({
|
|
167
167
|
ruleId: "PKG-HEALTH-05",
|
|
168
168
|
packageName,
|
|
169
169
|
severity: "error",
|
|
170
|
-
message:
|
|
171
|
-
"extract.config.yaml has versionBump: major — this causes double-bump when the monorepo version was already bumped manually. Use versionBump: patch instead.",
|
|
170
|
+
message: `extract.config.yaml has versionBump: ${versionBumpMatch[1]} — this auto-increments the version on every extract. The version in package.json is the source of truth.`,
|
|
172
171
|
file: extractConfigPath,
|
|
173
172
|
fixHint:
|
|
174
|
-
"
|
|
173
|
+
"Remove the versionBump line. Manually bump package.json version to the target before extracting.",
|
|
175
174
|
});
|
|
176
175
|
}
|
|
177
176
|
} catch {
|