Skip to content

Commit 2e7b91b

Browse files
committed
chore: use shared ts config
1 parent 9f21463 commit 2e7b91b

File tree

3 files changed

+13
-29
lines changed

3 files changed

+13
-29
lines changed

package.json

+6-8
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
"scripts": {
3232
"lint": "eslint .",
3333
"lint:fix": "eslint --fix .",
34-
"test": "run-s test:unit test:types",
35-
"test:unit": "tap --disable-coverage --allow-empty-coverage",
36-
"test:types": "tsc --project tsconfig.test.json",
37-
"types": "tsc --declaration --emitDeclarationOnly"
34+
"test": "tap --disable-coverage --allow-empty-coverage",
35+
"types": "run-s types:tsc types:test",
36+
"types:tsc": "tsc",
37+
"types:test": "tsc --project tsconfig.test.json"
3838
},
3939
"dependencies": {
4040
"@hapi/boom": "10.0.1",
@@ -50,11 +50,9 @@
5050
"devDependencies": {
5151
"@podium/eslint-config": "1.0.0",
5252
"@podium/test-utils": "2.5.2",
53+
"@podium/typescript-config": "1.0.0",
5354
"@semantic-release/changelog": "6.0.3",
5455
"@semantic-release/git": "10.0.1",
55-
"@semantic-release/github": "10.1.7",
56-
"@semantic-release/npm": "12.0.1",
57-
"@semantic-release/release-notes-generator": "13.0.0",
5856
"@sinonjs/fake-timers": "11.3.1",
5957
"@types/readable-stream": "4.0.15",
6058
"benchmark": "2.1.4",
@@ -63,7 +61,7 @@
6361
"get-stream": "9.0.1",
6462
"http-proxy": "1.18.1",
6563
"is-stream": "4.0.1",
66-
"npm-run-all2": "5.0.2",
64+
"npm-run-all2": "6.2.3",
6765
"prettier": "3.3.2",
6866
"semantic-release": "23.1.1",
6967
"tap": "18.7.2",

tsconfig.json

+5-14
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
{
2-
"compilerOptions": {
3-
"lib": ["es2020"],
4-
"module": "nodenext",
5-
"target": "es2020",
6-
"resolveJsonModule": true,
7-
"checkJs": true,
8-
"allowJs": true,
9-
"moduleResolution": "nodenext",
10-
"declaration": true,
11-
"skipLibCheck": true,
12-
"allowSyntheticDefaultImports": true,
13-
"outDir": "types"
14-
},
15-
"include": ["./lib/**/*.js"]
2+
"extends": "@podium/typescript-config/module.json",
3+
"include": ["./lib/**/*.js"],
4+
"compilerOptions": {
5+
"outDir": "types"
6+
}
167
}

tsconfig.test.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"include": ["./tests/**/*.js"],
4-
"compilerOptions": {
5-
"module": "nodenext",
6-
"moduleResolution": "nodenext",
7-
"noEmit": true
8-
}
2+
"extends": "@podium/typescript-config/test.json",
3+
"include": ["./tests/**/*.js"]
94
}

0 commit comments

Comments
 (0)