staytuned_team
staytuned_team
DDeno
Created by staytuned_team on 2/12/2025 in #help
Resolving Dependencies for Local ESM NPM Packages in Deno
The Problem: With the above configuration, how can I configure the Deno app so that it does not need any imports for uuid, marked, or lodash? All I want to do is for it to import package2 but have all of its dependencies pulled and loaded as well. How can I make Deno automatically detect and resolve the dependencies of my local NPM package without me having to manually specify them in the deno.json? Steps Taken: 1. Ensured "type": "module" is set in package2/package.json. 2. Built package2 using tsc (npm run build). 3. Attempted to import package2 into Deno without listing package2 dependencies in deno.json. Thank you.
7 replies