Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

Commit e1dabcc

Browse files
committed
fix: resolve ES module configuration issues
1 parent eb4dcbd commit e1dabcc

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN npm install -g pnpm@10.7.0
1010

1111
# Disable Husky during Docker build
1212
ENV HUSKY=0
13+
ENV NODE_ENV=production
1314

1415
# Install dependencies
1516
RUN pnpm install --frozen-lockfile --ignore-scripts
@@ -28,4 +29,4 @@ RUN rm -rf node_modules && \
2829
EXPOSE 3000
2930

3031
# Start the server
31-
CMD ["node", "dist/index.js"]
32+
CMD ["node", "--experimental-specifier-resolution=node", "dist/index.js"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ docker pull ghcr.io/yourusername/deepsource-mcp-server:latest
6464
"--rm",
6565
"-e",
6666
"DEEPSOURCE_API_KEY",
67-
"ghcr.io/yourusername/deepsource-mcp-server:latest"
67+
"sapientpants/deepsource-mcp-server"
6868
],
6969
"env": {
7070
"DEEPSOURCE_API_KEY": "your-deepsource-api-key"

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "deepsource-mcp-server",
3-
"version": "0.0.0",
4-
"description": "DeepSource MCP Server",
3+
"version": "1.0.0",
4+
"description": "Model Context Protocol server for DeepSource",
55
"type": "module",
66
"main": "dist/index.js",
77
"types": "dist/index.d.ts",
88
"scripts": {
99
"build": "tsc",
10-
"start": "node dist/index.js",
11-
"dev": "ts-node src/index.ts",
10+
"start": "node --experimental-specifier-resolution=node dist/index.js",
11+
"dev": "ts-node-dev --respawn --transpile-only src/index.ts",
1212
"watch": "tsc -w",
1313
"test": "jest",
1414
"test:watch": "jest --watch",

tsconfig.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
{
22
"compilerOptions": {
33
"target": "ES2022",
4-
"module": "commonjs",
5-
"lib": ["ES2022"],
4+
"module": "NodeNext",
5+
"moduleResolution": "NodeNext",
6+
"outDir": "./dist",
7+
"rootDir": "./src",
68
"strict": true,
79
"esModuleInterop": true,
810
"skipLibCheck": true,
911
"forceConsistentCasingInFileNames": true,
10-
"outDir": "./dist",
11-
"rootDir": "./src",
1212
"declaration": true,
13-
"resolveJsonModule": true,
14-
"moduleResolution": "node",
1513
"sourceMap": true
1614
},
1715
"include": ["src/**/*"],
18-
"exclude": ["node_modules", "dist"]
16+
"exclude": ["node_modules", "dist", "**/*.test.ts"]
1917
}

0 commit comments

Comments
 (0)