moved src/spec.types.ts to .
This commit is contained in:
parent
c9947a92fc
commit
98a04e6e38
3 changed files with 4 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -70,7 +70,7 @@ web_modules/
|
|||
*.tgz
|
||||
|
||||
# Output of 'npm run fetch:spec-types'
|
||||
src/spec.types.ts
|
||||
spec.types.ts
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"fetch:spec-types": "curl -o src/spec.types.ts https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/refs/heads/main/schema/draft/schema.ts",
|
||||
"fetch:spec-types": "curl -o spec.types.ts https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/refs/heads/main/schema/draft/schema.ts",
|
||||
"build": "npm run build:esm && npm run build:cjs",
|
||||
"build:esm": "mkdir -p dist/esm && echo '{\"type\": \"module\"}' > dist/esm/package.json && tsc -p tsconfig.prod.json",
|
||||
"build:esm:w": "npm run build:esm -- -w",
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
* (note: a few don't have SDK types, see MISSING_SDK_TYPES below)
|
||||
*/
|
||||
import * as SDKTypes from "./types.js";
|
||||
import * as SpecTypes from "./spec.types.js";
|
||||
import * as SpecTypes from "../spec.types.js";
|
||||
import fs from "node:fs";
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
|
|
@ -666,7 +666,7 @@ function checkLoggingLevel(
|
|||
}
|
||||
|
||||
// This file is .gitignore'd, and fetched by `npm run fetch:spec-types` (called by `npm run test`)
|
||||
const SPEC_TYPES_FILE = 'src/spec.types.ts';
|
||||
const SPEC_TYPES_FILE = 'spec.types.ts';
|
||||
const SDK_TYPES_FILE = 'src/types.ts';
|
||||
|
||||
const MISSING_SDK_TYPES = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue