• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mongodb-js / mongodb-mcp-server / 16320816887

16 Jul 2025 01:27PM UTC coverage: 76.93% (-0.5%) from 77.385%
16320816887

Pull #371

github

web-flow
Merge cce6ddb82 into fd3f2a4fd
Pull Request #371: chore(build): build a universal ESM and CommonJS package

501 of 691 branches covered (72.5%)

Branch coverage included in aggregate %.

2 of 66 new or added lines in 6 files covered. (3.03%)

1 existing line in 1 file now uncovered.

2827 of 3635 relevant lines covered (77.77%)

28.28 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

11.11
/scripts/updatePackageVersion.ts
1
#!/usr/bin/env node
2✔
2

NEW
3
import { readFileSync, writeFileSync } from "fs";
×
NEW
4
import { join } from "path";
×
5

6
// Read package.json
NEW
7
const packageJsonPath = join(import.meta.dirname, "..", "package.json");
×
NEW
8
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8")) as {
×
9
    version: string;
10
};
11

12
// Define the packageInfo.ts content
NEW
13
const packageInfoContent = `// This file was generated by scripts/updatePackageVersion.ts - Do not edit it manually.
×
14
export const packageInfo = {
NEW
15
    version: "${packageJson.version}",
×
16
    mcpServerName: "MongoDB MCP Server",
17
};
18
`;
19

20
// Write to packageInfo.ts
NEW
21
const packageInfoPath = join(import.meta.dirname, "..", "src", "common", "packageInfo.ts");
×
NEW
22
writeFileSync(packageInfoPath, packageInfoContent);
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc