Skip to content

Commit 5ace822

Browse files
ochafikchenxi-null
authored andcommitted
moved src/spec.types.ts to .
1 parent 735e19d commit 5ace822

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ web_modules/
7070
*.tgz
7171

7272
# Output of 'npm run fetch:spec-types'
73-
src/spec.types.ts
73+
spec.types.ts
7474

7575
# Yarn Integrity file
7676
.yarn-integrity

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"dist"
3636
],
3737
"scripts": {
38-
"fetch:spec-types": "curl -o src/spec.types.ts https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/refs/heads/main/schema/draft/schema.ts",
38+
"fetch:spec-types": "curl -o spec.types.ts https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/refs/heads/main/schema/draft/schema.ts",
3939
"build": "npm run build:esm && npm run build:cjs",
4040
"build:esm": "mkdir -p dist/esm && echo '{\"type\": \"module\"}' > dist/esm/package.json && tsc -p tsconfig.prod.json",
4141
"build:esm:w": "npm run build:esm -- -w",

src/spec.types.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* (note: a few don't have SDK types, see MISSING_SDK_TYPES below)
77
*/
88
import * as SDKTypes from "./types.js";
9-
import * as SpecTypes from "./spec.types.js";
9+
import * as SpecTypes from "../spec.types.js";
1010
import fs from "node:fs";
1111

1212
/* eslint-disable @typescript-eslint/no-unused-vars */
@@ -666,7 +666,7 @@ function checkLoggingLevel(
666666
}
667667

668668
// This file is .gitignore'd, and fetched by `npm run fetch:spec-types` (called by `npm run test`)
669-
const SPEC_TYPES_FILE = 'src/spec.types.ts';
669+
const SPEC_TYPES_FILE = 'spec.types.ts';
670670
const SDK_TYPES_FILE = 'src/types.ts';
671671

672672
const MISSING_SDK_TYPES = [

0 commit comments

Comments
 (0)