Skip to content

Commit 8f78afe

Browse files
committed
chore: use shared ts config
1 parent b6a018e commit 8f78afe

File tree

3 files changed

+12
-27
lines changed

3 files changed

+12
-27
lines changed

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,26 @@
3636
"lint": "eslint . --ignore-pattern '/dist/'",
3737
"lint:fix": "eslint --fix . --ignore-pattern '/dist/'",
3838
"test": "tap --disable-coverage --allow-empty-coverage test/*.js",
39-
"types": "tsc --declaration --emitDeclarationOnly && tsc --project tsconfig.test.json"
39+
"types": "run-s types:tsc types:test",
40+
"types:tsc": "tsc",
41+
"types:test": "tsc --project tsconfig.test.json"
4042
},
4143
"dependencies": {
4244
"@podium/bridge": "^1.2.2",
4345
"eventemitter3": "4.0.7"
4446
},
4547
"devDependencies": {
46-
"@babel/core": "7.25.2",
4748
"@babel/preset-env": "7.25.3",
4849
"@podium/eslint-config": "1.0.0",
50+
"@podium/typescript-config": "1.0.0",
4951
"@rollup/plugin-babel": "6.0.4",
5052
"@rollup/plugin-commonjs": "25.0.8",
5153
"@rollup/plugin-node-resolve": "15.2.3",
5254
"@semantic-release/changelog": "6.0.3",
53-
"@semantic-release/commit-analyzer": "12.0.0",
5455
"@semantic-release/git": "10.0.1",
55-
"@semantic-release/github": "10.1.3",
56-
"@semantic-release/npm": "12.0.1",
57-
"@semantic-release/release-notes-generator": "13.0.0",
5856
"eslint": "9.4.0",
5957
"jsdom": "24.1.1",
58+
"npm-run-all2": "6.2.3",
6059
"prettier": "3.2.5",
6160
"rollup": "4.22.4",
6261
"tap": "18.7.2"

tsconfig.json

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
{
2-
"compilerOptions": {
3-
"lib": ["es2020", "DOM"],
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": ["./src/**/*.js"]
2+
"extends": "@podium/typescript-config/module.json",
3+
"include": ["./src/**/*.js"],
4+
"compilerOptions": {
5+
"outDir": "types"
6+
}
167
}

tsconfig.test.json

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

0 commit comments

Comments
 (0)