deno icon indicating copy to clipboard operation
deno copied to clipboard

feat: allow executing local & private ts npm scripts (exposed via package.json's "bin" entry)

Open castarco opened this issue 1 year ago • 3 comments

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.

castarco avatar Aug 03 '24 19:08 castarco

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 03 '24 19:08 CLAassistant

@dsherret please take a look and let me know if this is something we want to land

bartlomieju avatar Oct 14 '24 22:10 bartlomieju

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 🙂 .

castarco avatar Oct 16 '24 10:10 castarco

closing because old

ry avatar May 09 '25 00:05 ry