Merge pull request #8 from modelcontextprotocol/justin/fix-gitignore
Rename .gitignore to avoid xplat problems
This commit is contained in:
commit
078a3c9855
2 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
4
template/dotfile-gitignore
Normal file
4
template/dotfile-gitignore
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
node_modules/
|
||||
build/
|
||||
*.log
|
||||
.env*
|
||||
Loading…
Reference in a new issue