Skip to content

Commit 7064ad0

Browse files
committed
fix: clearer typescript
1 parent ad51a41 commit 7064ad0

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

src/common/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { NodeDriverServiceProvider } from "@mongosh/service-provider-node-driver
22
import { ApiClient, ApiClientCredentials } from "./atlas/apiClient.js";
33
import { Implementation } from "@modelcontextprotocol/sdk/types.js";
44
import logger, { LogId } from "./logger.js";
5-
import EventEmitter from "events";
5+
import { EventEmitter } from "events";
66
import { ConnectOptions } from "./config.js";
77
import { setAppNameParamIfMissing } from "../helpers/connectionOptions.js";
88
import { packageInfo } from "./packageInfo.js";

tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
"skipLibCheck": true,
1515
"resolveJsonModule": true,
1616
"allowSyntheticDefaultImports": true,
17-
"typeRoots": ["./node_modules/@types", "./src/types"]
17+
"typeRoots": ["./node_modules/@types", "./src/types"],
18+
"declaration": true,
19+
"declarationMap": true
1820
},
1921
"include": ["src/**/*.ts"]
2022
}

tsconfig.cjs.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"compilerOptions": {
44
"module": "commonjs",
55
"moduleResolution": "node",
6-
"outDir": "./dist/cjs",
7-
"declaration": true,
8-
"declarationMap": true
6+
"outDir": "./dist/cjs"
97
}
108
}

tsconfig.esm.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"compilerOptions": {
44
"module": "esnext",
55
"moduleResolution": "bundler",
6-
"outDir": "./dist",
7-
"declaration": true,
8-
"declarationMap": true
6+
"outDir": "./dist"
97
}
108
}

0 commit comments

Comments
 (0)