editmash icon indicating copy to clipboard operation
editmash copied to clipboard

Listing bun as dependency

Open ndivinity opened this issue 10 months ago • 3 comments

There is not a trivial way of counterparting Bun runtime commands to Node/npm only commands.

References:

  • bun install
    • npm install --force could run, cannot measure how effective it is.
    • npm install by itself fails.
  • bun run server.ts * npx tsx server.ts could be a replacement, though fails with ReferenceError: Bun is not defined. Websocket server hardly depends on Bun's runtime. * The usage of npx tsx could be done with npm install -g tsx but installs "tsx" globally.

Setup details

  • Tried under Debian Linux 12 with kernel 6.1.0-41-amd64.
  • Node/npm installed manually through the official website to /opt/nodejs.

Edit: Stripped off "adding Node/npm equivalents of bun commands" from the issue title, since bun is a deeper dependency than just adding command counterparts.

ndivinity avatar Jan 08 '26 19:01 ndivinity

It needs bun to run

ghost avatar Jan 09 '26 17:01 ghost

Bun's websocket is faster than node's websocket

ghost avatar Jan 09 '26 17:01 ghost

It needs bun to run

Yes

ndivinity avatar Jan 10 '26 03:01 ndivinity