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:
parent
dec7a6ec56
commit
64024207d8
|
|
@ -11,6 +11,7 @@ node_modules
|
|||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
public/monaco/
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue