Repository navigation
Commit f567bc5
committed
refactor(types): move @types/node to the tool that needs it
The root package.json carried @types/node solely so the root tsconfig could
set `types: ["node"]`, and that tsconfig existed solely to cover
`nix/**/*.ts`. With the last of those files now living under
nix/tools/models-dev-gen, both belonged there rather than at the root: no
`*.ts` file sits at the repository root, and apps/ccusage and docs each
declare @types/node themselves.
So the tool directory gets its own tsconfig, standalone like the other two
in this repository, and pins @types/node next to the dependencies it already
pins. gen.ts stays excluded for the same reason the oxlint config ignores
it. The root package.json is left with no devDependencies at all.
`just typecheck` still resolves node types for compact.test.ts, now out of
nix/tools/models-dev-gen/node_modules, which `just gen-bun-nix` populates.1 parent fa0548b commit f567bc5
6 files changed
Lines changed: 23 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 15 | | |
19 | 16 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments