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$": [
|
||||||
"ts-jest",
|
"ts-jest",
|
||||||
{
|
{
|
||||||
tsconfig: {
|
tsConfig: 'tsconfig.test.json'
|
||||||
module: "es2022",
|
|
||||||
esModuleInterop: true,
|
|
||||||
allowJs: true,
|
|
||||||
target: "es2020",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import type {
|
||||||
DxtUserConfigValues,
|
DxtUserConfigValues,
|
||||||
Logger,
|
Logger,
|
||||||
McpServerConfig,
|
McpServerConfig,
|
||||||
} from "../types";
|
} from "../types.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This file contains utility functions for handling DXT configuration,
|
* This file contains utility functions for handling DXT configuration,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { readFileSync } from "fs";
|
import { readFileSync } from "fs";
|
||||||
import { join } from "path";
|
import { join } from "path";
|
||||||
|
|
||||||
import { DxtManifestSchema } from "../src/schemas";
|
import { DxtManifestSchema } from "../src/schemas.js";
|
||||||
|
|
||||||
describe("DxtManifestSchema", () => {
|
describe("DxtManifestSchema", () => {
|
||||||
it("should validate a valid manifest", () => {
|
it("should validate a valid manifest", () => {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import * as fs from "fs";
|
||||||
import forge from "node-forge";
|
import forge from "node-forge";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
|
|
||||||
import { signDxtFile, unsignDxtFile, verifyDxtFile } from "../src/node/sign";
|
import { signDxtFile, unsignDxtFile, verifyDxtFile } from "../src/node/sign.js";
|
||||||
|
|
||||||
// Test directory
|
// Test directory
|
||||||
const TEST_DIR = path.join(__dirname, "test-output");
|
const TEST_DIR = path.join(__dirname, "test-output");
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
"target": "es2024",
|
"target": "es2024",
|
||||||
"lib": ["ES2023"],
|
"lib": ["ES2023"],
|
||||||
|
|
||||||
"module": "es2022",
|
"module": "node18",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node16",
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
|
|
||||||
// Path settings
|
// Path settings
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"preserveWatchOutput": true,
|
"preserveWatchOutput": true,
|
||||||
"types": ["node", "jest"]
|
"types": ["node"]
|
||||||
},
|
},
|
||||||
"include": ["src/**/*.ts", "src/*.ts"],
|
"include": ["src/**/*.ts", "src/*.ts"],
|
||||||
"exclude": ["node_modules", "dist"]
|
"exclude": ["node_modules", "dist"]
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,9 @@
|
||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"module": "es2022",
|
"module": "node18",
|
||||||
"moduleResolution": "node"
|
"moduleResolution": "node16",
|
||||||
|
"types": ["node", "jest"],
|
||||||
},
|
},
|
||||||
"include": ["src/**/*.ts", "test/**/*.ts"]
|
"include": ["src/**/*.ts", "test/**/*.ts"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue