Skip to content

Commit 99a1610

Browse files
authored
refactor: Remove "browser" tsconfig jsons (#3286)
This pull request removes several `tsconfig.browser.json` files from multiple packages and updates the corresponding `tsconfig.karma.json` files to extend from the shared root configuration instead. This streamlines TypeScript configuration across packages, reducing redundancy and potential inconsistencies. **TypeScript configuration cleanup:** * Deleted `tsconfig.browser.json` files from the following packages to consolidate configuration into the shared root config: `autocertifier-server`, `cdn-location`, `geoip-location`, `proto-rpc`, `sdk`, `trackerless-network`, and `utils`. **Test configuration updates:** * Updated `tsconfig.karma.json` files in `dht`, `proto-rpc`, `trackerless-network`, and `utils` to extend from the shared root config (`../../tsconfig.browser.json`) instead of the deleted package-local config, and added necessary compiler options and includes directly. * Ensured that all updated `tsconfig.karma.json` files explicitly specify `outDir`, `noImplicitOverride`, and the appropriate `include` paths.
1 parent 060a4c2 commit 99a1610

File tree

13 files changed

+20
-100
lines changed

13 files changed

+20
-100
lines changed

packages/autocertifier-server/tsconfig.browser.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/cdn-location/tsconfig.browser.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/dht/tsconfig.browser.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/dht/tsconfig.karma.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2-
"extends": "./tsconfig.browser.json",
2+
"extends": "../../tsconfig.karma.json",
33
"compilerOptions": {
4+
"outDir": "dist",
5+
"noImplicitOverride": false,
46
"types": ["jest", "jest-extended"]
5-
}
7+
},
8+
"include": ["src", "package.json"]
69
}

packages/geoip-location/tsconfig.browser.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/proto-rpc/tsconfig.browser.json

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2-
"extends": "./tsconfig.browser.json",
2+
"extends": "../../tsconfig.karma.json",
33
"compilerOptions": {
4+
"outDir": "dist",
5+
"noImplicitOverride": false,
46
"types": ["jest"]
5-
}
7+
},
8+
"include": ["src"]
69
}

packages/sdk/tsconfig.browser.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/trackerless-network/tsconfig.browser.json

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2-
"extends": "./tsconfig.browser.json",
2+
"extends": "../../tsconfig.karma.json",
33
"compilerOptions": {
4+
"outDir": "dist",
5+
"noImplicitOverride": false,
46
"types": ["jest", "@streamr/test-utils/customMatcherTypes"]
5-
}
7+
},
8+
"include": ["src", "generated"]
69
}

0 commit comments

Comments
 (0)