Skip to content

Commit b9ebbbf

Browse files
committed
fix(scaffold): emit .gitattributes and default npm scope to @TMHS
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>
1 parent 4969cd8 commit b9ebbbf

5 files changed

Lines changed: 17 additions & 3 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.17.1
1+
1.17.2

scaffold/generator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ def _render_repo(output_dir: Path, ctx: dict, *, verbose: bool) -> None:
217217
("LICENSE", "LICENSE.j2"),
218218
(".cursorrules", "cursorrules.j2"),
219219
(".gitignore", "gitignore.j2"),
220+
(".gitattributes", "gitattributes.j2"),
220221
("site.json", "site.json.j2"),
221222
("mcp-tools.json", "mcp-tools.json.j2"),
222223
):
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Normalize line endings
2+
* text=auto
3+
*.ts eol=lf
4+
*.js eol=lf
5+
*.json eol=lf
6+
*.md eol=lf
7+
*.yml eol=lf
8+
*.yaml eol=lf
9+
10+
# Committed binary artifacts (e.g. symbol databases, tree-sitter grammars) must
11+
# never be line-ending converted or diffed as text.
12+
*.gz binary
13+
*.wasm binary

scaffold/templates/package.json.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@{{ repo_owner | lower }}/{{ slug }}",
2+
"name": "@tmhs/{{ slug }}",
33
"version": "0.1.0",
44
"description": "{{ description }}",
55
"type": "module",

scaffold/templates/site.json.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"Search for <code>{{ name }}</code>",
1313
"Click <code>Install</code> and reload"
1414
{% else %}
15-
"Install with <code>npx -y @{{ repo_owner | lower }}/{{ slug }}</code>",
15+
"Install with <code>npx -y @tmhs/{{ slug }}</code>",
1616
"Add to your Claude Desktop or Cursor mcpServers config",
1717
"Restart your MCP client"
1818
{% endif %}

0 commit comments

Comments
 (0)