deno
deno copied to clipboard
feat: allow executing local & private ts npm scripts (exposed via package.json's "bin" entry)
Fixes https://github.com/denoland/deno/issues/24862
This PR introduces some changes that allow Deno to execute TS scripts provided via NPM packages, but only in case they are exposed through the "bin" entry in the corresponding package.json file (with the extra constraint that the package must be "local", not installed from a remote registry).
I am aware that the likeliness of this being accepted is low, but I still find it interesting to present it as a proof of concept.
I didn't provide new tests for now, but I'll work on them in case this change is welcome.
@dsherret please take a look and let me know if this is something we want to land
I see that there are conflicts since I pushed this PR. I can work on them if in the end the Deno team is ok with this change 🙂 .
closing because old