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 13ea841 commit 4586719
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 30 deletions.
14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
"types": "types/bridge.d.ts",
"scripts": {
"lint": "eslint lib/ tests/",
"test": "run-s test:unit test:types",
"test:unit": "node --test",
"test:types": "tsc --project tsconfig.test.json",
"types": "run-s types:tsc types:fixup",
"test": "node --test",
"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"
},
"repository": {
Expand All @@ -29,16 +28,13 @@
"homepage": "https://github.com/podium-lib/bridge#readme",
"devDependencies": {
"@podium/eslint-config": "1.0.0",
"@podium/typescript-config": "1.0.0",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/commit-analyzer": "12.0.0",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "10.0.3",
"@semantic-release/npm": "12.0.1",
"@semantic-release/release-notes-generator": "13.0.0",
"@types/node": "20.12.12",
"eslint": "9.2.0",
"jsdom": "24.0.0",
"npm-run-all": "4.1.5",
"npm-run-all2": "6.2.3",
"prettier": "3.2.5",
"semantic-release": "23.1.1",
"typescript": "5.4.5"
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", "DOM"],
"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 4586719

Please sign in to comment.