diff --git a/package.json b/package.json index d6c2d39..f5c0906 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "lint": "oxlint .", "lint:fix": "oxlint --fix .", "prepublishOnly": "pnpm build", - "test": "node --test" + "test": "tsc -p tsconfig.test.json && node --test" }, "dependencies": { "yaml": "^2.8.2" diff --git a/tsconfig.test.json b/tsconfig.test.json new file mode 100644 index 0000000..bce6a5a --- /dev/null +++ b/tsconfig.test.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "rootDir": ".", + "declaration": false, + "noEmit": true + }, + "include": ["src/**/*.ts", "test/**/*.ts"] +}