Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 078a3c9

Browse files
Merge pull request #8 from modelcontextprotocol/justin/fix-gitignore
Rename .gitignore to avoid xplat problems
2 parents e3c690c + c301f34 commit 078a3c9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,13 @@ async function createServer(directory: string, options: any = {}) {
144144

145145
if (!stats.isFile()) continue;
146146

147-
const targetPath = path.join(directory, file.replace(".ejs", ""));
147+
// Special handling for dot files - remove the leading dot from template name
148+
const targetPath = path.join(
149+
directory,
150+
file.startsWith('dotfile-')
151+
? `.${file.slice(8).replace('.ejs', '')}`
152+
: file.replace('.ejs', '')
153+
);
148154
const targetDir = path.dirname(targetPath);
149155

150156
// Create subdirectories if needed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules/
22
build/
33
*.log
4-
.env*
4+
.env*

0 commit comments

Comments
 (0)