Commit 1b27c8f
authored
refactor [NET-1646]: Clean-up tsconfigs for the
This pull request updates TypeScript configuration for the `cli-tools`
package to improve project references and build reliability. The changes
primarily enhance how the package manages its dependencies and build
process, ensuring better integration with related packages and more
robust project setup.
### Changes
**TypeScript project configuration improvements:**
* Added additional project references in `tsconfig.node.json` and
`tsconfig.jest.json` for `dht`, `trackerless-network`, and `test-utils`
to ensure proper dependency tracking and type checking.
* Included `tsconfig.node.json` as a reference in the main
`tsconfig.json` for `cli-tools`, clarifying the build order and
dependencies.
* Added `package.json` to the `include` array in `tsconfig.jest.json` to
ensure it is considered in type checking and builds.
**Build process and compiler options:**
* Simplified the `build` script in `package.json` to use the default
TypeScript project references build (`tsc -b`), making the build process
more consistent.
* Enabled the `disableSourceOfProjectReferenceRedirect` compiler option
in the root `tsconfig.node.json` to prevent issues with source file
redirection in project references.
**Other adjustments:**
* Removed the `composite` option from `cli-tools/tsconfig.node.json`, as
it is now managed at a higher level.cli-tools package (#3270)1 parent b90adea commit 1b27c8f
File tree
6 files changed
+21
-7
lines changed- packages/cli-tools
- bin
6 files changed
+21
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
12 | 23 | | |
13 | 24 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments