this post was submitted on 05 Jul 2023
3 points (100.0% liked)

JavaScript

1920 readers
12 users here now

founded 1 year ago
MODERATORS
 

I’ve figured out how to write libraries in Deno, and publish them to node using the DNT package, but this only works if there package is authored in Deno. I have several libraries that are already written in Node and I’d like to publish Deno packages for them, but I’m unsure how to handle the dependencies. Using the DNT tool, you effectively map the Deno dependencies to Node. How can I go the other direction and map Node dependencies to Deno so I can publish tools (like @jmondi/oauth2-server) to Deno? Here is an example going from Deno to Node: @jmondi/browser-storage

all 1 comments
sorted by: hot top controversial new old