Commit 62e72cd
committed
Cut runtime dependencies from 17 packages to 10
Remove fs-extra and debug from the runtime dependencies, and which from
the dev dependencies:
- fs-extra: 3 of its 7 call sites (existsSync, statSync) were plain
node:fs re-exports; the rest map to fs.promises.mkdir/writeFile/readdir
and JSON.parse(fs.readFileSync()). Drops fs-extra, graceful-fs,
jsonfile and universalify.
- debug: replaced by a ~10 line local helper. util.debuglog cannot be
used because it only reads NODE_DEBUG from the launch environment, so
it would have broken the documented DEBUG=java-caller contract, which
this helper keeps working unchanged. Drops debug and ms.
- which: used once, to find the java binary in a test, and its engines
field (^22.22.2 || ^24.15.0 || >=26) excludes the Node 18/20 versions
the CI matrix tests. Replaced by a findInPath test helper.
- Bump yauzl so it no longer pulls buffer-crc32.
Also fixes a few things found on the way:
- engines said node >=12 while njre@3 requires >=18 and every dev tool
needs 18+, so consumers on Node 12-16 installed a broken tree.
- npm run lint was already broken on main: eslint 10 no longer hoists
@eslint/js and globals, which eslint.config.js requires. They are now
declared explicitly, and a Lint job runs npm run lint in CI so the
script cannot silently rot again.
- Drop the @babel/core and uuid overrides, which matched no package in
the tree.1 parent 0549039 commit 62e72cd
9 files changed
Lines changed: 115 additions & 111 deletions
File tree
- .github/workflows
- lib
- test
- helpers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
14 | 32 | | |
15 | 33 | | |
16 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
59 | 60 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
9 | 23 | | |
10 | 24 | | |
11 | 25 | | |
| |||
334 | 348 | | |
335 | 349 | | |
336 | 350 | | |
337 | | - | |
| 351 | + | |
338 | 352 | | |
339 | | - | |
| 353 | + | |
340 | 354 | | |
341 | 355 | | |
342 | 356 | | |
343 | 357 | | |
344 | 358 | | |
345 | | - | |
| 359 | + | |
346 | 360 | | |
347 | 361 | | |
348 | 362 | | |
| |||
464 | 478 | | |
465 | 479 | | |
466 | 480 | | |
467 | | - | |
| 481 | + | |
468 | 482 | | |
469 | 483 | | |
470 | 484 | | |
471 | | - | |
| 485 | + | |
472 | 486 | | |
473 | 487 | | |
474 | 488 | | |
475 | | - | |
| 489 | + | |
476 | 490 | | |
477 | 491 | | |
478 | 492 | | |
| |||
483 | 497 | | |
484 | 498 | | |
485 | 499 | | |
486 | | - | |
| 500 | + | |
487 | 501 | | |
488 | 502 | | |
489 | 503 | | |
| |||
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 | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| 44 | + | |
46 | 45 | | |
47 | 46 | | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
58 | | - | |
59 | | - | |
| 56 | + | |
60 | 57 | | |
61 | 58 | | |
62 | | - | |
| 59 | + | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
| |||
0 commit comments