@dbx-tools/projen 0.6.27 → 0.6.35
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/package.json +1 -1
- package/tasks/bump.ts +11 -1
package/package.json
CHANGED
package/tasks/bump.ts
CHANGED
|
@@ -229,7 +229,7 @@ program
|
|
|
229
229
|
const tags = prefixes.map((prefix) => `${prefix}${version}`);
|
|
230
230
|
logger.info(
|
|
231
231
|
`bump ${base.join(".")} -> ${version} (${opts.level}); tags ${tags.join(", ")}` +
|
|
232
|
-
|
|
232
|
+
`${tagged.length ? "" : " [no remote tag]"}`,
|
|
233
233
|
);
|
|
234
234
|
for (const t of tagged) {
|
|
235
235
|
if (compareSemver(t.version, base) < 0) {
|
|
@@ -333,6 +333,16 @@ program
|
|
|
333
333
|
}
|
|
334
334
|
logger.success(`published ${version} to ${localRegistry}`);
|
|
335
335
|
}
|
|
336
|
+
|
|
337
|
+
// Publishing can run package lifecycle hooks, including a standalone
|
|
338
|
+
// project's own projen synth, which rewrites its generated manifest back
|
|
339
|
+
// to 0.0.0. Re-assert the release version last so root and every sibling
|
|
340
|
+
// manifest finish the bump in lockstep.
|
|
341
|
+
if (opts.version) {
|
|
342
|
+
writeManifestVersion(pkgPath, version);
|
|
343
|
+
for (const s of siblings) writeManifestVersion(s.pkgPath, version);
|
|
344
|
+
logger.info(`synchronized release manifests at ${version}`);
|
|
345
|
+
}
|
|
336
346
|
},
|
|
337
347
|
);
|
|
338
348
|
|