Skip to content

Commit 9a6fa9f

Browse files
committed
fix: remove build script
1 parent 4a681f8 commit 9a6fa9f

File tree

5 files changed

+8
-21
lines changed

5 files changed

+8
-21
lines changed

bin/box-mcp-server.sh

-10
This file was deleted.

package-lock.json

+2-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "box-mcp-server",
33
"version": "0.1.4",
4-
"main": "box-mcp-server/dist/index.js",
4+
"main": "dist/index.js",
55
"scripts": {
66
"clean": "shx rm -rf dist",
77
"build": "tsc && shx chmod +x dist/*.js",
@@ -11,9 +11,6 @@
1111
"test": "jest",
1212
"test:watch": "jest --watch"
1313
},
14-
"bin": {
15-
"box-mcp-server": "bin/box-mcp-server.sh"
16-
},
1714
"files": [
1815
"dist/**/*",
1916
"bin/**/*"

src/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
22
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
3-
import packageJson from "../package.json" assert { type: "json" };
3+
import { readFileSync } from "fs";
4+
const packageJson = JSON.parse(
5+
readFileSync(new URL("../package.json", import.meta.url), "utf-8")
6+
);
47
import {
58
CallToolRequestSchema,
69
ListResourcesRequestSchema,

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1212

1313
/* Language and Environment */
14-
"target": "ES2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
14+
"target": "ES2020", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
1515
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1616
// "jsx": "preserve", /* Specify what JSX code is generated. */
1717
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */

0 commit comments

Comments
 (0)