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
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
+2
-2
@@ -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!");
|
||||
|
||||
+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 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]: {
|
||||
|
||||
Reference in New Issue
Block a user