staytuned_team
Issue with deno emit bundle in Workspaces - Need Help and Documentation
Hi everyone,
I'm having trouble with deno emit bundle function, when my project is in workspaces. It seems like the bundling process doesn't support workspaces. Has anyone encountered this issue before and can provide an example of how to handle this use case? Are there any official docs available that address this?
taking example from the official deno workspace docs: https://docs.deno.com/runtime/fundamentals/workspaces/
and deno/emit docs: https://jsr.io/@deno/emit
after creating the files mentioned in the doc, i.e.:
add two files
1. import_map.json
2. bundle.ts
// bundle.ts:
the following error occures which bundling:
Thanks in advance for your help!
7 replies
does deno_graph natively resolve the path of workspaces?
Hi everyone,
I'm working on a project that includes multiple workspace members defined in my deno.json file using the workspaces field. I'm using deno_graph to resolve dependencies, but I noticed that while it allows specifying an import_map, there's no option to include the deno.json file directly.
Does deno_graph natively understand and resolve workspaces specified in deno.json? If so, how can I configure it to resolve dependencies across all workspace members? If not, what would be the recommended approach to handle dependencies in a multi-workspace setup using deno_graph?
Any guidance would be greatly appreciated!
reference:
deno_grpah
jsr
Thank you.
6 replies