switch back to js

This commit is contained in:
David Blass
2025-11-19 16:31:13 -05:00
parent dcc257ff7a
commit 5889d20930
6 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
# Mark generated files as linguist-generated to exclude from language statistics # Mark generated files as linguist-generated to exclude from language statistics
entry.js linguist-detectable=false *.js linguist-detectable=false
+1 -1
View File
@@ -8,5 +8,5 @@ if git diff --cached --name-only | grep -q "^package.json$"; then
pnpm build pnpm build
# Add the built files and lockfile to the commit # 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 fi
View File
+2 -2
View File
@@ -29,14 +29,14 @@ const sharedConfig = {
await build({ await build({
...sharedConfig, ...sharedConfig,
entryPoints: ["./entry.ts"], entryPoints: ["./entry.ts"],
outfile: "./entry", outfile: "./entry.js",
}); });
// Build the MCP server bundle // Build the MCP server bundle
await build({ await build({
...sharedConfig, ...sharedConfig,
entryPoints: ["./mcp/server.ts"], entryPoints: ["./mcp/server.ts"],
outfile: "./mcp-server", outfile: "./mcp-server.js",
}); });
console.log("✅ Build completed successfully!"); 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 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) // 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 { return {
[ghPullfrogMcpName]: { [ghPullfrogMcpName]: {