diff --git a/.gitattributes b/.gitattributes index 90ef506..1b00c0d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,2 @@ # Mark generated files as linguist-generated to exclude from language statistics -entry.js linguist-detectable=false +*.js linguist-detectable=false diff --git a/.husky/pre-commit b/.husky/pre-commit index 99fea8d..22f6a87 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -8,5 +8,5 @@ if git diff --cached --name-only | grep -q "^package.json$"; then pnpm build # Add the built files and lockfile to the commit - git add entry mcp-server pnpm-lock.yaml + git add entry.js mcp-server.js pnpm-lock.yaml fi diff --git a/entry b/entry.js similarity index 100% rename from entry rename to entry.js diff --git a/esbuild.config.js b/esbuild.config.js index 4767ebd..4202dcf 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -29,14 +29,14 @@ const sharedConfig = { await build({ ...sharedConfig, entryPoints: ["./entry.ts"], - outfile: "./entry", + outfile: "./entry.js", }); // Build the MCP server bundle await build({ ...sharedConfig, entryPoints: ["./mcp/server.ts"], - outfile: "./mcp-server", + outfile: "./mcp-server.js", }); console.log("✅ Build completed successfully!"); diff --git a/mcp-server b/mcp-server.js similarity index 100% rename from mcp-server rename to mcp-server.js diff --git a/mcp/config.ts b/mcp/config.ts index 6036b6e..d1abed0 100644 --- a/mcp/config.ts +++ b/mcp/config.ts @@ -18,7 +18,7 @@ export function createMcpConfigs(githubInstallationToken: string): McpConfigs { // In production (GitHub Actions), mcp-server.js is in same directory as entry.js (where this is bundled) // In development, server.ts is in the same directory as this file (config.ts) - const serverPath = process.env.GITHUB_ACTIONS ? fromHere("mcp-server") : fromHere("server.ts"); + const serverPath = process.env.GITHUB_ACTIONS ? fromHere("mcp-server.js") : fromHere("server.ts"); return { [ghPullfrogMcpName]: {