You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Esm.sh adds its own comment at the start of the code, followed by polyfills... then comes our shebang...
Also, if possible, modify the shebang from node to the User-Agent used (like bun/node/deno) so it makes sure that we run directly on the runtime we want, and not just running a child process in theory 😄
The text was updated successfully, but these errors were encountered:
renhiyama
changed the title
Feature/Fix: Properly make use of shebang.
Feature/Fix: Properly make use of shebang to allow cli apps to run.
Apr 18, 2023
I was thinking of running my cli package that is a nodejs app, directly running it on deno like this:
However, the file doesn't make use of shebang, as we can see the code at https://esm.sh/v115/[email protected]/deno/src/cli/index.js
Esm.sh adds its own comment at the start of the code, followed by polyfills... then comes our shebang...
Also, if possible, modify the shebang from
node
to the User-Agent used (like bun/node/deno) so it makes sure that we run directly on the runtime we want, and not just running a child process in theory 😄The text was updated successfully, but these errors were encountered: