denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
98.22k stars 5.41k forks source link

Ability to use deno_node without deno_kv. #26291

Open theswerd opened 1 month ago

theswerd commented 1 month ago

I want to use deno_node without using deno_kv

The problem:

The good solution (I think/hope)

My current solution

I've added deno_kv and deno_cron as extensions to my setup, and just configured them with backends that don't do anything.

littledivy commented 1 month ago

deno_node relies on child process APIs from deno_runtime. We might want to extract that into it's own crate

RonnyChan-okta commented 1 month ago

Seconding this, we'd like to use deno_node without pulling in the entirety of deno_runtime.

bartlomieju commented 1 month ago

FYI even once this refactor this done you might not pull 2 or 3 deno_* crates that you'd have to pull right now.

RonnyChan-okta commented 1 month ago

Seems like it relies on runtime for console as well

https://github.com/denoland/deno/blob/02e5a7a012d0c53a61f5cb38f15b92dd0db4f841/ext/node/polyfills/console.ts#L5