UNPKG

serpstat-audit

Version:

MCP server for Serpstat Site Audit API - Complete technical SEO analysis and website health monitoring

31 lines (30 loc) 679 B
import { build } from 'esbuild'; import { copyFileSync, chmodSync } from 'fs'; build({ entryPoints: ['src/index.ts'], bundle: true, platform: 'node', target: 'node18', outfile: 'build/index.js', format: 'esm', sourcemap: true, external: [ 'axios', 'zod', 'serpstat-shared', '@modelcontextprotocol/sdk' ], banner: { js: ` import { createRequire } from 'module'; const require = createRequire(import.meta.url); ` } }).then(() => { // Make the output file executable chmodSync('build/index.js', '755'); console.log('Build completed successfully'); }).catch((error) => { console.error('Build failed:', error); process.exit(1); });