kingbri
Cannot use import maps
Hi there,
I'm trying to make a project root alias
@
so I don't have to suffer through relative path import hell (../../../../file.ts
)
However, when I specify "@/": "./"
in the imports section of deno.json
, I get an error from VSCode stating this:
Therefore, I either have to use absolute imports for every file or use only relative imports. I want to be able to use both.
Is converting the project root to @/
not possible without some sort of src
directory? Thanks in advance.2 replies
Include DLL files in deno compile
I'm currently building a CLI application with Deno that I want to compile into a standalone executable which uses FFI.
I learned about
deno compile
, but I'm also stuck on how to include the DLLs that are used via FFI in my output binary. I don't want to include the DLLs separately after the binary is built, but I want to be able to ship a single binary.
For example, nexe.js
allows users to add static files under resources
https://github.com/nexe/nexe?tab=readme-ov-file#resources
Can this be replicated in Deno?1 replies