Getting version out of deno.json
How can I get data from
deno.json
on runtime without exposing it to client?3 Replies
What are you using for the build step?
deno compile
As far as I am aware, the compile step is just bundling the js into a single executable. I have not seen any way to make compiler flags or code replacement.
This is how i got the version out for the CLI i was working on, but it does import the entire json file.