From dcc257ff7a37d1c3699691c80c7746715dae740d Mon Sep 17 00:00:00 2001 From: David Blass Date: Wed, 19 Nov 2025 16:22:01 -0500 Subject: [PATCH] remove js suffix --- .husky/pre-commit | 2 +- entry | 1 + esbuild.config.js | 4 ++-- mcp-server.js => mcp-server | 0 mcp/config.ts | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) rename mcp-server.js => mcp-server (100%) diff --git a/.husky/pre-commit b/.husky/pre-commit index 22f6a87..99fea8d 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.js mcp-server.js pnpm-lock.yaml + git add entry mcp-server pnpm-lock.yaml fi diff --git a/entry b/entry index 5c6b2c1..28e76c3 100755 --- a/entry +++ b/entry @@ -1,3 +1,4 @@ +#!/usr/bin/env node import { createRequire as __createRequire } from 'module'; import { fileURLToPath as __fileURLToPath } from 'url'; import { dirname as __dirnameFn } from 'path'; const require = __createRequire(import.meta.url); const __filename = __fileURLToPath(import.meta.url); const __dirname = __dirnameFn(__filename); var __create = Object.create; var __defProp = Object.defineProperty; diff --git a/esbuild.config.js b/esbuild.config.js index 4202dcf..4767ebd 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -29,14 +29,14 @@ const sharedConfig = { await build({ ...sharedConfig, entryPoints: ["./entry.ts"], - outfile: "./entry.js", + outfile: "./entry", }); // Build the MCP server bundle await build({ ...sharedConfig, entryPoints: ["./mcp/server.ts"], - outfile: "./mcp-server.js", + outfile: "./mcp-server", }); console.log("✅ Build completed successfully!"); diff --git a/mcp-server.js b/mcp-server similarity index 100% rename from mcp-server.js rename to mcp-server diff --git a/mcp/config.ts b/mcp/config.ts index d1abed0..6036b6e 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.js") : fromHere("server.ts"); + const serverPath = process.env.GITHUB_ACTIONS ? fromHere("mcp-server") : fromHere("server.ts"); return { [ghPullfrogMcpName]: {