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 10a57e2 commit c4a58db
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 30 deletions.
15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"test": "run-s test:*",
"test:unit": "tap tests/*.js --disable-coverage --allow-empty-coverage",
"test:types": "tsc --project tsconfig.test.json",
"types": "tsc --declaration --emitDeclarationOnly"
"test": "tap tests/*.js --disable-coverage --allow-empty-coverage",
"types": "run-s types:tsc types:test",
"types:tsc": "tsc",
"types:test": "tsc --project tsconfig.test.json"
},
"dependencies": {
"@metrics/client": "2.5.3",
Expand All @@ -48,16 +48,13 @@
"devDependencies": {
"@podium/eslint-config": "1.0.0",
"@podium/test-utils": "2.5.2",
"@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/http-proxy": "1.17.15",
"@types/readable-stream": "4.0.15",
"eslint": "9.6.0",
"npm-run-all2": "5.0.2",
"npm-run-all2": "6.2.3",
"prettier": "3.3.2",
"semantic-release": "23.1.1",
"tap": "18.8.0",
Expand Down
19 changes: 5 additions & 14 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +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"]
"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 c4a58db

Please sign in to comment.