Commit 1c39b80
authored
refactor [NET-1645]: Clean-up tsconfigs for the
This pull request updates TypeScript configuration and build scripts for
the `cdn-location` (primarily) and `dht` packages to improve type
checking, project references, and test configuration. The main focus is
on refining how different parts of the codebase are built and checked,
especially for data generation and testing.
### Changes
**TypeScript configuration improvements:**
* Added a new `tsconfig.data-generation.json` in `cdn-location` for
type-checking the `data-generation` directory without emitting output,
and updated the main `tsconfig.json` to reference it.
* Updated `tsconfig.jest.json` in `cdn-location` to only include the
`test` directory, and changed project references to point to the local
`tsconfig.node.json` and `test-utils`.
* Adjusted `tsconfig.node.json` in `cdn-location` to remove the
reference to `test-utils`, keeping only `utils` as a reference.
**Build and check script enhancements:**
* Improved the `check` script in `cdn-location/package.json` to run type
checks for both test and data generation configs, ensuring stricter type
safety across the project.
**Project references update for `dht` package:**
* Changed `dht` package TypeScript configs to reference the entire
`cdn-location` project instead of just its `tsconfig.node.json`,
simplifying dependency management.cdn-location package (#3269)1 parent 6fcdc10 commit 1c39b80
File tree
7 files changed
+18
-12
lines changed- packages
- cdn-location
- dht
7 files changed
+18
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 7 | + | |
| 8 | + | |
13 | 9 | | |
14 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
13 | 12 | | |
14 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
0 commit comments