Cannot read `include`d folder in compiled file
Hello, I am trying to compile an application and read a folder that I include with it. I am running into a problem with the output. I don't know how to read a directory inside the binary that I have included. I ran this command
deno compile --include config
to include the folder config
in the binary, but I don't know how to read it and where to find it.
This is my folder structure:
And running deno task dev
can read the file, because everything is where it is expected. If I compile the program and run it from this folder, I can also access the directory, because the file is where it is supposed to relative to the 'config' folder.
I want to have the config folder included though, so I can move the file freely around.
Here's a sample program:
EDIT: My full example includes using deno workspaces and the file that reads the config folder is in another workspace than the one calling it. Which might introduce extra complexity1 Reply
It's somewhere under import .meta.dirname