RogueMan
Executable having trouble with types
I'm encountering a syntax error when trying to import files when running an executable, specifically with type imports.
I have included the entire
./src/modules/test
directory into the binary
When running a compiled binary, I'm getting a SyntaxError related to type imports.
Here's the specific code causing issues:
path: ./src/modules/test/commands/testing.ts
Function used to import files:
Full Error Message:
Deno Version: 2.1.211 replies
Root path when compiled
Is it possible to get the "root" path when running an executable? I can't seem to get it to work...
So for example I would like to get the following:
C:\Users\Admin\AppData\Local\Temp\deno-compile-test.exe\deno-testing\src\
1 replies
Dynamic import at compile time
I am trying to import files dynamically based on a glob pattern. These files are not imported correctly when I compile the application. It only works with a static string. Is there any way to make it work with the glob pattern? or is there a workaround?
Or do I just have to import the files using static strings
20 replies