Merge pull request #8 from modelcontextprotocol/justin/fix-gitignore

Rename .gitignore to avoid xplat problems
This commit is contained in:
Justin Spahr-Summers 2024-11-25 12:35:44 -06:00 • committed by GitHub
commit 078a3c9855
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -144,7 +144,13 @@ async function createServer(directory: string, options: any = {}) {
if (!stats.isFile()) continue;
const targetPath = path.join(directory, file.replace(".ejs", ""));
// Special handling for dot files - remove the leading dot from template name
const targetPath = path.join(
directory,
file.startsWith('dotfile-')
? `.${file.slice(8).replace('.ejs', '')}`
: file.replace('.ejs', '')
);
const targetDir = path.dirname(targetPath);
// Create subdirectories if needed

View file

@ -0,0 +1,4 @@
node_modules/
build/
*.log
.env*