From 98a04e6e38a8762c66e3f0c7d997d9656427ac77 Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Mon, 7 Jul 2025 13:22:15 +0100 Subject: [PATCH] moved src/spec.types.ts to . --- .gitignore | 2 +- package.json | 2 +- src/spec.types.test.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index b39dd94e..694735b6 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/package.json b/package.json index b42b1ea2..bf21340f 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/spec.types.test.ts b/src/spec.types.test.ts index 87514cb0..796aab1c 100644 --- a/src/spec.types.test.ts +++ b/src/spec.types.test.ts @@ -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 = [