diff --git a/package.json b/package.json index 89ba3675..b03896cb 100644 --- a/package.json +++ b/package.json @@ -26,11 +26,10 @@ "scripts": { "lint": "eslint .", "lint:fix": "eslint --fix .", - "test": "run-s test:*", - "test:unit": "tap --disable-coverage --allow-empty-coverage", - "test:types": "tsc --project tsconfig.test.json", - "types": "run-s types:tsc types:fixup", + "test": "tap --disable-coverage --allow-empty-coverage", + "types": "run-s types:tsc types:fixup types:test", "types:tsc": "tsc --declaration --emitDeclarationOnly", + "types:test": "tsc --project tsconfig.test.json", "types:fixup": "node ./fixup.js" }, "dependencies": { @@ -45,13 +44,10 @@ "devDependencies": { "@podium/eslint-config": "1.0.0", "@podium/test-utils": "3.0.8", + "@podium/typescript-config": "1.0.0", "@semantic-release/changelog": "6.0.3", - "@semantic-release/commit-analyzer": "11.1.0", "@semantic-release/git": "10.0.1", - "@semantic-release/github": "9.2.6", - "@semantic-release/npm": "11.0.3", - "@semantic-release/release-notes-generator": "12.1.0", - "@types/node": "^20.10.3", + "@types/node": "20.10.3", "@types/readable-stream": "4.0.15", "eslint": "9.9.1", "express": "4.20.0", diff --git a/tsconfig.json b/tsconfig.json index 1021998f..19707f1a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,17 +1,7 @@ { - "compilerOptions": { - "lib": ["es2020"], - "module": "nodenext", - "target": "es2020", - "resolveJsonModule": true, - "checkJs": true, - "allowJs": true, - "moduleResolution": "nodenext", - "declaration": true, - "skipLibCheck": true, - "allowSyntheticDefaultImports": true, - "outDir": "types" - }, - "include": ["./lib/**/*.js"], - "exclude": ["./lib/**/*.test.js"] -} \ No newline at end of file + "extends": "@podium/typescript-config/module.json", + "include": ["./lib/**/*.js"], + "compilerOptions": { + "outDir": "types" + } +} diff --git a/tsconfig.test.json b/tsconfig.test.json index 801ba2e6..2bd90d84 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -1,9 +1,4 @@ { - "extends": "./tsconfig.json", - "include": ["./tests/**/*.js"], - "compilerOptions": { - "module": "nodenext", - "moduleResolution": "nodenext", - "noEmit": true - } + "extends": "@podium/typescript-config/test.json", + "include": ["./tests/**/*.js"] }