First pass at pulling the v1.5 CLI, TUI, and Launcher clients into v2.
This commit is contained in:
parent
d5f12b2a82
commit
467b01edd6
1 changed files with 24043 additions and 203 deletions
36
clients/web/tsup.runner.config.ts
Normal file
36
clients/web/tsup.runner.config.ts
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
import { defineConfig } from 'tsup';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
const dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const repoRoot = path.resolve(dirname, '../..');
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/index.ts'],
|
||||
format: ['esm'],
|
||||
outDir: 'build',
|
||||
clean: true,
|
||||
sourcemap: true,
|
||||
target: 'node20',
|
||||
platform: 'node',
|
||||
noExternal: [/^@inspector\/core/],
|
||||
external: [
|
||||
'commander',
|
||||
'open',
|
||||
'pino',
|
||||
'hono',
|
||||
'@hono/node-server',
|
||||
'vite',
|
||||
'@vitejs/plugin-react',
|
||||
'zustand',
|
||||
'atomically',
|
||||
'chokidar',
|
||||
'@napi-rs/keyring',
|
||||
'@modelcontextprotocol/sdk',
|
||||
],
|
||||
esbuildOptions(options) {
|
||||
options.alias = {
|
||||
'@inspector/core': path.join(repoRoot, 'core'),
|
||||
};
|
||||
},
|
||||
});
|
||||
Loading…
Reference in a new issue