diff --git a/packages/apidom-parser/package.json b/packages/apidom-parser/package.json index 261f538de..4aaaa6683 100644 --- a/packages/apidom-parser/package.json +++ b/packages/apidom-parser/package.json @@ -24,7 +24,7 @@ "lint": "eslint ./", "lint:fix": "eslint ./ --fix", "clean": "rimraf --glob 'src/**/*.mjs' 'src/**/*.cjs' 'test/**/*.mjs' ./dist ./types", - "typescript:check-types": "tsc --noEmit && tsc -p ./test/tsconfig.json --noEmit", + "typescript:check-types": "tsc --noEmit", "typescript:declaration": "copyfiles -u 1 'src/**/*.d.ts' ./types && tsc -p tsconfig.declaration.json && rollup -c config/rollup/types.dist.js", "test": "npm run build:es && cross-env BABEL_ENV=es babel test --out-dir test --extensions '.ts' --out-file-extension '.mjs' --root-mode 'upward' && cross-env NODE_ENV=test mocha", "prepack": "copyfiles -u 3 ../../LICENSES/* LICENSES && copyfiles -u 2 ../../NOTICE .", diff --git a/packages/apidom-parser/test/tsconfig.json b/packages/apidom-parser/test/tsconfig.json deleted file mode 100644 index 405aae2d2..000000000 --- a/packages/apidom-parser/test/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "module": "esnext", - "moduleResolution": "node" - }, - "include": [ - "." - ] -} diff --git a/packages/apidom-parser/tsconfig.declaration.json b/packages/apidom-parser/tsconfig.declaration.json index 82d128fa8..5697fa3e8 100644 --- a/packages/apidom-parser/tsconfig.declaration.json +++ b/packages/apidom-parser/tsconfig.declaration.json @@ -1,5 +1,8 @@ { "extends": "./tsconfig.json", + "exclude": [ + "test/**/*" + ], "compilerOptions": { "declaration": true, "declarationDir": "types", diff --git a/packages/apidom-parser/tsconfig.json b/packages/apidom-parser/tsconfig.json index 501a41d3f..258027ad9 100644 --- a/packages/apidom-parser/tsconfig.json +++ b/packages/apidom-parser/tsconfig.json @@ -6,6 +6,7 @@ "allowImportingTsExtensions": true }, "include": [ - "src/**/*" + "src/**/*", + "test/**/*", ] }