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
|
|
@ -26,10 +26,7 @@
|
|||
"prepack": "pnpm run build:esm && pnpm run build:cjs",
|
||||
"lint": "eslint src/ && prettier --ignore-path ../../.prettierignore --check .",
|
||||
"lint:fix": "eslint src/ --fix && prettier --ignore-path ../../.prettierignore --write .",
|
||||
"check": "pnpm run typecheck && pnpm run lint",
|
||||
"start": "pnpm run server",
|
||||
"server": "tsx watch --clear-screen=false scripts/cli.ts server",
|
||||
"client": "tsx scripts/cli.ts client"
|
||||
"check": "pnpm run typecheck && pnpm run lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hono/node-server": "catalog:runtimeServerOnly",
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import type { Request, Response } from 'express';
|
|||
import express from 'express';
|
||||
import * as z from 'zod/v4';
|
||||
|
||||
import { InMemoryEventStore } from './inMemoryEventStore.js';
|
||||
import { InMemoryEventStore } from './inMemoryEventStore';
|
||||
|
||||
// Create an MCP server with implementation details
|
||||
const getServer = () => {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import cors from 'cors';
|
|||
import type { Request, Response } from 'express';
|
||||
import * as z from 'zod/v4';
|
||||
|
||||
import { InMemoryEventStore } from './inMemoryEventStore.js';
|
||||
import { InMemoryEventStore } from './inMemoryEventStore';
|
||||
|
||||
// Check for OAuth flag
|
||||
const useOAuth = process.argv.includes('--oauth');
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import { McpServer } from '@modelcontextprotocol/server';
|
|||
import cors from 'cors';
|
||||
import type { Request, Response } from 'express';
|
||||
|
||||
import { InMemoryEventStore } from './inMemoryEventStore.js';
|
||||
import { InMemoryEventStore } from './inMemoryEventStore';
|
||||
|
||||
// Create a fresh MCP server per client connection to avoid shared state between clients
|
||||
const getServer = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue