Commit 80e36b5
authored
fix(install): rewrite node_modules .bin shim generation for windows to be like npm (#31494)
Previously we were just generating a little cmd file that did `deno run
npm:/..`..., but we were the odd one out in that most other package
managers do .cmd, a sh script, and a powershell script.
This ports the shim logic from https://github.com/npm/cmd-shim and uses
that instead.
Parts of the port were done by claude, mostly the string handling
nonsense and the tests1 parent 1317a36 commit 80e36b5
File tree
4 files changed
+646
-29
lines changed- libs/npm_installer
- bin_entries
4 files changed
+646
-29
lines changedSome 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 | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
378 | 380 | | |
379 | 381 | | |
380 | 382 | | |
381 | | - | |
| 383 | + | |
382 | 384 | | |
383 | | - | |
384 | | - | |
| 385 | + | |
| 386 | + | |
385 | 387 | | |
386 | 388 | | |
387 | 389 | | |
388 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
389 | 397 | | |
390 | 398 | | |
391 | 399 | | |
| |||
400 | 408 | | |
401 | 409 | | |
402 | 410 | | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | 411 | | |
425 | 412 | | |
426 | 413 | | |
| |||
479 | 466 | | |
480 | 467 | | |
481 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
482 | 473 | | |
483 | 474 | | |
484 | 475 | | |
| |||
491 | 482 | | |
492 | 483 | | |
493 | 484 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | 485 | | |
499 | 486 | | |
500 | 487 | | |
| |||
0 commit comments