chore: update tsconfig (#51)
This commit is contained in:
parent
167a20c9ba
commit
ac2df7c157
6 changed files with 10 additions and 14 deletions
|
|
@ -8,12 +8,7 @@ export default {
|
|||
"^.+\\.ts$": [
|
||||
"ts-jest",
|
||||
{
|
||||
tsconfig: {
|
||||
module: "es2022",
|
||||
esModuleInterop: true,
|
||||
allowJs: true,
|
||||
target: "es2020",
|
||||
},
|
||||
tsConfig: 'tsconfig.test.json'
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import type {
|
|||
DxtUserConfigValues,
|
||||
Logger,
|
||||
McpServerConfig,
|
||||
} from "../types";
|
||||
} from "../types.js";
|
||||
|
||||
/**
|
||||
* This file contains utility functions for handling DXT configuration,
|
||||
|
|
|
|||
|
|
@ -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", () => {
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue