29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
import { defineConfig } from 'tsdown';
|
|
|
|
export default defineConfig({
|
|
failOnWarn: 'ci-only',
|
|
entry: ['src/index.ts', 'src/sse/index.ts', 'src/auth/index.ts'],
|
|
format: ['esm', 'cjs'],
|
|
fixedExtension: true,
|
|
outDir: 'dist',
|
|
clean: true,
|
|
sourcemap: true,
|
|
target: 'esnext',
|
|
platform: 'node',
|
|
shims: true,
|
|
dts: {
|
|
resolver: 'tsc',
|
|
compilerOptions: {
|
|
baseUrl: '.',
|
|
paths: {
|
|
'@modelcontextprotocol/core-internal': ['../core-internal/src/index.ts'],
|
|
'@modelcontextprotocol/core-internal/public': ['../core-internal/src/exports/public/index.ts']
|
|
}
|
|
}
|
|
},
|
|
noExternal: ['@modelcontextprotocol/core-internal'],
|
|
// The schema modules live in @modelcontextprotocol/core (a real runtime dependency); the
|
|
// bundled core-internal shims import them via the './internal' subpath, which must stay an
|
|
// external import (explicit entry — the tsconfig paths alias would otherwise inline it).
|
|
external: ['@modelcontextprotocol/core/internal']
|
|
});
|