chore: switch to module ESNext + moduleResolution bundler (#2095)

This commit is contained in:
Matt 2026-06-25 12:49:17 +02:00 • committed by GitHub
commit ee732d64b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 668 additions and 863 deletions

View file

@ -46,9 +46,7 @@
"lint:fix": "eslint src/ --fix && prettier --ignore-path ../../../.prettierignore --write .",
"check": "pnpm run typecheck && pnpm run lint",
"test": "vitest run",
"test:watch": "vitest",
"server": "tsx watch --clear-screen=false scripts/cli.ts server",
"client": "tsx scripts/cli.ts client"
"test:watch": "vitest"
},
"dependencies": {
"@hono/node-server": "catalog:runtimeServerOnly"
@ -76,7 +74,6 @@
"eslint-plugin-n": "catalog:devTools",
"prettier": "catalog:devTools",
"tsdown": "catalog:devTools",
"tsx": "catalog:devTools",
"typescript": "catalog:devTools",
"typescript-eslint": "catalog:devTools",
"vitest": "catalog:devTools"

View file

@ -1 +1 @@
export * from './streamableHttp.js';
export * from './streamableHttp';

View file

@ -12,7 +12,7 @@ import type { IncomingMessage, ServerResponse } from 'node:http';
import { McpServer } from '@modelcontextprotocol/server';
import { NodeStreamableHTTPServerTransport } from './streamableHttp.js';
import { NodeStreamableHTTPServerTransport } from './streamableHttp';
/**
* Example: Stateful Streamable HTTP transport (Node.js).

View file

@ -18,7 +18,7 @@ import { listenOnRandomPort } from '@modelcontextprotocol/test-helpers';
import * as z from 'zod/v4';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { NodeStreamableHTTPServerTransport } from '../src/streamableHttp.js';
import { NodeStreamableHTTPServerTransport } from '../src/streamableHttp';
async function getFreePort() {
return new Promise(res => {