Skip to content

Commit

Permalink
chore: use shared ts config
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Sep 27, 2024
1 parent 291e0e3 commit eb07eda
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 32 deletions.
14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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",
Expand Down
22 changes: 6 additions & 16 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"]
}
"extends": "@podium/typescript-config/module.json",
"include": ["./lib/**/*.js"],
"compilerOptions": {
"outDir": "types"
}
}
9 changes: 2 additions & 7 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -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"]
}

0 comments on commit eb07eda

Please sign in to comment.