Skip to content

fix(scaffold): emit .gitattributes and default npm scope to @tmhs#92

Merged
TMHSDigital merged 2 commits into
mainfrom
fix/scaffold-gitattributes-npm-scope
Jul 19, 2026
Merged

fix(scaffold): emit .gitattributes and default npm scope to @tmhs#92
TMHSDigital merged 2 commits into
mainfrom
fix/scaffold-gitattributes-npm-scope

Conversation

@TMHSDigital

Copy link
Copy Markdown
Owner

Fix two scaffold defects at the source

Both were hit and worked around locally during the godot-correctness-mcp birth; fixed here so no future born repo repeats them.

Proven by live run (scratch generator run, no GitHub side effects)

Generated both a mcp-server and a cursor-plugin into throwaway dirs (deleted after) and asserted the emitted output:

  • .gitattributes present with * text=auto, eol=lf for ts/js/json/md/yml/yaml, and *.gz/*.wasm marked binary — in both repo types.
  • npm scope is @tmhs/<slug> in package.json and the site.json npx line; zero @tmhsdigital occurrences anywhere in either generated repo.
  • License emits CC-BY-NC-ND-4.0 in both package.json ("license") and LICENSE (SPDX-License-Identifier).

Established by inspection

  • The only two npm-scope templating sites were package.json.j2:2 and site.json.j2:15 (@{{ repo_owner | lower }}@tmhsdigital); corrected to @tmhs. All remaining TMHSDigital references are GitHub-org URLs (repository/homepage/bugs, drift-check/pages/release action refs) and are left unchanged.
  • License was already correct (cc-by-nc-nd-4.0 is the only license option; LICENSE.j2 emits the full CC-BY-NC-ND-4.0 text). No license change was needed.

Placement note (superset of the ask)

.gitattributes is emitted from the generator's shared/unconditional file loop (next to .gitignore), so both repo types get it — fixing the CRLF phantom-diff root cause universally rather than mcp-server-only. Harmless for cursor-plugins (they simply have no .gz/.wasm).

STANDARDS_VERSION unchanged (not a standards change). VERSION bumped 1.17.1 → 1.17.2 per the meta-repo contract for a scaffold fix.

Two defects hit and worked around during the godot-correctness-mcp birth, now
fixed at the source so no future born repo repeats them:

- Add templates/gitattributes.j2 and emit it for every born repo (both types,
  alongside .gitignore): normalizes LF for ts/js/json/md/yml/yaml and marks
  .gz/.wasm artifacts binary. Prevents CRLF phantom diffs on .json and mangled
  committed binary artifacts.
- Default npm scope corrected from @{{ repo_owner | lower }} (-> @TMHSDigital)
  to @TMHS in package.json.j2 and site.json.j2. The GitHub org references
  (TMHSDigital in URLs) are unchanged and correct.

License already emits CC-BY-NC-ND-4.0 (package.json + LICENSE); verified, no
change. STANDARDS_VERSION unchanged (not a standards change); VERSION bumped
1.17.1 -> 1.17.2 per the meta-repo contract for a scaffold fix.

Signed-off-by: fOuttaMyPaint <154358121+TMHSDigital@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Signed-off-by: fOuttaMyPaint <154358121+TMHSDigital@users.noreply.github.com>
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 19, 2026
@TMHSDigital
TMHSDigital merged commit 951770a into main Jul 19, 2026
14 checks passed
@TMHSDigital
TMHSDigital deleted the fix/scaffold-gitattributes-npm-scope branch July 19, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation scaffold

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant