[v2] Мonorepo, sdk-client, sdk-server, sdk-core package split (#1279)
This commit is contained in:
parent
384311b9b8
commit
71ae3acee0
3 changed files with 12067 additions and 4817 deletions
28
common/vitest-config/package.json
Normal file
28
common/vitest-config/package.json
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"name": "@modelcontextprotocol/vitest-config",
|
||||
"private": true,
|
||||
"main": "vitest.config.mjs",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": "./vitest.config.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"typescript": "catalog:devTools"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/modelcontextprotocol/typescript-sdk.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/modelcontextprotocol/typescript-sdk/issues"
|
||||
},
|
||||
"homepage": "https://github.com/modelcontextprotocol/typescript-sdk/tree/develop/common/vitest-config",
|
||||
"publishConfig": {
|
||||
"registry": "https://npm.pkg.github.com/"
|
||||
},
|
||||
"version": "2.0.0",
|
||||
"devDependencies": {
|
||||
"@modelcontextprotocol/tsconfig": "workspace:^",
|
||||
"vite-tsconfig-paths": "catalog:devTools"
|
||||
}
|
||||
}
|
||||
8
common/vitest-config/tsconfig.json
Normal file
8
common/vitest-config/tsconfig.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"include": ["./"],
|
||||
"extends": "@modelcontextprotocol/tsconfig",
|
||||
"compilerOptions": {
|
||||
"noEmit": true,
|
||||
"allowJs": true
|
||||
}
|
||||
}
|
||||
25
common/vitest-config/vitest.config.js
Normal file
25
common/vitest-config/vitest.config.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { defineConfig } from 'vitest/config';
|
||||
import tsconfigPaths from 'vite-tsconfig-paths';
|
||||
import path from 'node:path';
|
||||
import url from 'node:url';
|
||||
|
||||
const ignorePatterns = ['**/dist/**'];
|
||||
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'node',
|
||||
include: ['test/**/*.test.ts'],
|
||||
exclude: ignorePatterns,
|
||||
deps: {
|
||||
moduleDirectories: ['node_modules', path.resolve(__dirname, '../../packages'), path.resolve(__dirname, '../../common')]
|
||||
},
|
||||
poolOptions: {
|
||||
threads: {
|
||||
useAtomics: true
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: [tsconfigPaths()]
|
||||
});
|
||||
Loading…
Reference in a new issue