DenoDDeno
Powered by
FlenyF
Denoβ€’3y ago
Fleny

Source generation for dependencies

Hello, I'm working on a source gen for a library (Node, Deno, Bun) and currently my idea was to override the default types of the library by replacing the file on the
node_modules
node_modules
folder, however Deno does not use the
node_modules
node_modules
folder so I'm not sure what alternative I have.

I have noticed that Deno has a
vendor
vendor
command that puts the deps in a
vendor/
vendor/
dir, (but in my testing it creates a
node_modules
node_modules
dir instead), would that be something helpful for what I'm trying to do?

For context, the library by-default should ships with a complete interface object and then a CLI* would update those types based on a bunch of configs the CLI* (and runtime) reads adapting the types with the CLI* and the runtime objects, currently the library only does the runtime part and the DX is awful since TS does not have the context to know that the runtime wont have the proprieties.

* = The CLI is what I'm trying to build
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Deno for SASS dependencies?
wauterboiWwauterboi / help
3y ago
Analyze dependencies for deno compile
kittyamazing_Kkittyamazing_ / help
2y ago
Checking for circular module dependencies?
patwasalinguistPpatwasalinguist / help
3y ago
Installing Deno dependencies error for NX repo
CMKPCCMKP / help
2y ago