chore: update tsconfig (#51)

This commit is contained in:
Alex Yang 2025-07-08 15:49:07 -07:00 • committed by GitHub
commit ac2df7c157
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 10 additions and 14 deletions

View file

@ -8,12 +8,7 @@ export default {
"^.+\\.ts$": [
"ts-jest",
{
tsconfig: {
module: "es2022",
esModuleInterop: true,
allowJs: true,
target: "es2020",
},
tsConfig: 'tsconfig.test.json'
},
],
},

View file

@ -3,7 +3,7 @@ import type {
DxtUserConfigValues,
Logger,
McpServerConfig,
} from "../types";
} from "../types.js";
/**
* This file contains utility functions for handling DXT configuration,

View file

@ -1,7 +1,7 @@
import { readFileSync } from "fs";
import { join } from "path";
import { DxtManifestSchema } from "../src/schemas";
import { DxtManifestSchema } from "../src/schemas.js";
describe("DxtManifestSchema", () => {
it("should validate a valid manifest", () => {

View file

@ -13,7 +13,7 @@ import * as fs from "fs";
import forge from "node-forge";
import * as path from "path";
import { signDxtFile, unsignDxtFile, verifyDxtFile } from "../src/node/sign";
import { signDxtFile, unsignDxtFile, verifyDxtFile } from "../src/node/sign.js";
// Test directory
const TEST_DIR = path.join(__dirname, "test-output");

View file

@ -5,8 +5,8 @@
"target": "es2024",
"lib": ["ES2023"],
"module": "es2022",
"moduleResolution": "node",
"module": "node18",
"moduleResolution": "node16",
"esModuleInterop": true,
// Path settings
@ -29,7 +29,7 @@
"resolveJsonModule": true,
"incremental": true,
"preserveWatchOutput": true,
"types": ["node", "jest"]
"types": ["node"]
},
"include": ["src/**/*.ts", "src/*.ts"],
"exclude": ["node_modules", "dist"]

View file

@ -2,8 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": true,
"module": "es2022",
"moduleResolution": "node"
"module": "node18",
"moduleResolution": "node16",
"types": ["node", "jest"],
},
"include": ["src/**/*.ts", "test/**/*.ts"]
}