switch back to js
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||||
|
|||||||
+2
-2
@@ -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!");
|
||||||
|
|||||||
+1
-1
@@ -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]: {
|
||||||
|
|||||||
Reference in New Issue
Block a user