fix(monaco): ignore public/monaco/ in git per Copilot suggestion (PR #163)

- postinstall now writes a '*' .gitignore into public/monaco/ so the
  copied monaco-editor assets are never tracked as untracked files
- Also add public/monaco/ to frontend/.gitignore as a belt-and-suspenders
  fallback for the same reason
This commit is contained in:
David Montero Crespo 2026-05-11 12:22:19 -03:00
parent dec7a6ec56
commit 64024207d8
2 changed files with 2 additions and 1 deletions

1
frontend/.gitignore vendored
View File

@ -11,6 +11,7 @@ node_modules
dist
dist-ssr
*.local
public/monaco/
# Editor directories and files
.vscode/*

View File

@ -20,7 +20,7 @@
"format:check": "prettier --check \"src/**/*.{ts,tsx,css}\"",
"check": "npm run lint && npm run format:check",
"preview": "vite preview",
"postinstall": "mkdir -p public/monaco && cp -r node_modules/monaco-editor/min/vs public/monaco/vs",
"postinstall": "mkdir -p public/monaco && printf \"*\\n!.gitignore\\n\" > public/monaco/.gitignore && cp -r node_modules/monaco-editor/min/vs public/monaco/vs",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",