@biffo/cli 0.108.8 → 0.108.9
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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"name": "example-sibling",
|
|
3
3
|
"core_project": "example-core-project",
|
|
4
4
|
"path_prefix": "example-sibling",
|
|
5
|
-
"
|
|
5
|
+
"template_version": "0.0.0",
|
|
6
|
+
"description": "Rewritten by `biffo sibling create` (ADR-0007) with this sibling's real name, its paired core project's name, its registered path prefix, and the core template version it was scaffolded from (template_version, issue #567 — visibility only, not consumed by any upgrade mechanism today). The identity fields above are not meant to be hand-edited afterwards — path_prefix in particular must always match the entry this sibling was registered under in the core project's infra/siblings.auto.tfvars.json. `routes` below, however, IS yours to maintain.",
|
|
6
7
|
"routes": []
|
|
7
8
|
}
|
package/dist/index.js
CHANGED
|
@@ -5294,7 +5294,11 @@ async function pushSkeleton(git, skeletonRoot, cloneUrl, config, coreConfig, git
|
|
|
5294
5294
|
try {
|
|
5295
5295
|
writeSiblingTemplate(skeletonRoot, workDir, config, {
|
|
5296
5296
|
coreProjectName: coreConfig.project.name,
|
|
5297
|
-
pathPrefix: resolvePathPrefix(config)
|
|
5297
|
+
pathPrefix: resolvePathPrefix(config),
|
|
5298
|
+
// The core template's version at scaffold time (issue #567) — visibility
|
|
5299
|
+
// only, mirroring how `biffo init` stamps `biffo.core.json`. See the
|
|
5300
|
+
// `template_version` field doc on `SiblingMarker` (lib/sibling-teardown.ts).
|
|
5301
|
+
templateVersion: getLatestCoreVersion()
|
|
5298
5302
|
});
|
|
5299
5303
|
await git.init(workDir, "main");
|
|
5300
5304
|
await git.addRemote(workDir, "origin", cloneUrl);
|
|
@@ -5318,6 +5322,8 @@ function writeSiblingTemplate(templateRoot, targetDir, config, context) {
|
|
|
5318
5322
|
name: config.project.name,
|
|
5319
5323
|
core_project: context.coreProjectName,
|
|
5320
5324
|
path_prefix: context.pathPrefix,
|
|
5325
|
+
// Visibility only (issue #567) — see SiblingMarker.template_version.
|
|
5326
|
+
template_version: context.templateVersion,
|
|
5321
5327
|
...config.project.description ? { description: config.project.description } : {},
|
|
5322
5328
|
// Always written (even when empty) so the field is discoverable — declare
|
|
5323
5329
|
// this sibling's notable routes here and they surface on the core's
|