@opndev/rzilla 0.0.1 → 0.0.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/Changes CHANGED
@@ -1,5 +1,9 @@
1
1
  Revision history for @opndev/rzilla
2
2
 
3
- {{ NEXT }}
3
+ 0.0.2 2026-02-15 23:53:05Z
4
+
5
+ * Fix bug while dogfooding ourselves: Publish the correct Changes file
6
+
7
+ 0.0.1 2026-02-15 23:31:30Z
4
8
 
5
9
  * First release to an unsuspecting world
@@ -214,6 +214,9 @@ export async function runRelease(opts = {}) {
214
214
  const files = asArray(g.files ?? "lib/**/*.{mjs,cjs,js}");
215
215
  const include = asArray(g.include ?? []);
216
216
 
217
+ // Ensure the release changelog is present in the publish artifact.
218
+ if (!include.includes(changesPath)) include.push(changesPath);
219
+
217
220
  await populateBuildDir({ buildDir, files, include, binDirs });
218
221
  }
219
222
 
@@ -226,10 +229,16 @@ export async function runRelease(opts = {}) {
226
229
  }
227
230
 
228
231
  async function commitAndTagRelease() {
229
- // stamp NEXT -> version + UTC(Z) timestamp (repo)
230
- const changesBefore = await readChanges(changesPath);
232
+ // Finalize Changes IN the build artifact, then copy it back to the repo
233
+ // so the commit/tag matches exactly what we publish.
234
+ const buildChangesPath = path.join(build.currentPath, changesPath);
235
+
236
+ const changesBefore = await readChanges(buildChangesPath);
231
237
  const releasedChanges = finalizeNextToVersion(changesBefore, version);
232
- await writeChanges(changesPath, releasedChanges);
238
+ await writeChanges(buildChangesPath, releasedChanges);
239
+
240
+ // Copy finalized Changes back to repo working tree
241
+ await fs.copyFile(buildChangesPath, changesPath);
233
242
 
234
243
  await sh("git", ["add", changesPath], { inherit: true });
235
244
  await sh("git", ["commit", "-m", `Release ${version}`], { inherit: true });
package/package.json CHANGED
@@ -46,5 +46,5 @@
46
46
  },
47
47
  "sideEffects": false,
48
48
  "type": "module",
49
- "version": "0.0.1"
49
+ "version": "0.0.2"
50
50
  }