remove js suffix

This commit is contained in:
David Blass
2025-11-19 16:22:01 -05:00
parent 2ba6cf7c0b
commit dcc257ff7a
5 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -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;
+2 -2
View File
@@ -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!");
View File
+1 -1
View File
@@ -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]: {