chore: switch to module ESNext + moduleResolution bundler (#2095)
This commit is contained in:
parent
c59dc3aa1a
commit
ee732d64b6
4 changed files with 668 additions and 863 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
export * from './streamableHttp.js';
|
||||
export * from './streamableHttp';
|
||||
|
|
|
|||
|
|
@ -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).
|
||||
|
|
|
|||
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue