You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed Deno today to play around with it and after running some example code, Deno told me it compiled my typescript file but didn't state where it stored it.
$ deno run --reload example.ts
Compile file:///home/me/deno_test/example.ts
hello world
The documentation says the default deno directory is at $HOME/.deno but only the deno binary was there.
$ find $HOME/.deno -type f
/home/me/.deno/bin/deno
`DENO_DIR` defaults to `$HOME/.deno` but can be set to any path to control where
generated and cached source code is written and read to.
The code actually says it uses the OS cache directory.
// We use the OS cache dir because all files deno writes are cache files// Once that changes we need to start using different roots if DENO_DIR// is not set, and keep a single one if it is.let default = dirs::cache_dir()
To save Deno newbies time in finding the location for the cached content, could the setup_your_environment.md documentation be updated to mention that the deno info command will reveal the true location of your cached files?
Or maybe include a verbose option in the deno run command that prints out the location of the cached files.verbose logging reveals the location deno run --log-level debug --reload example.ts
The text was updated successfully, but these errors were encountered:
Deno Version
1.0.2
OS
Linux (Ubuntu 18+)
Problem
I installed Deno today to play around with it and after running some example code, Deno told me it compiled my typescript file but didn't state where it stored it.
The documentation says the default deno directory is at
$HOME/.deno
but only the deno binary was there.The code actually says it uses the OS cache directory.
After more digging I finally discovered the
deno info
command to reveal the true location of the cached content.Expected
Actual
Possible Solutions:
To save Deno newbies time in finding the location for the cached content, could the setup_your_environment.md documentation be updated to mention that the
deno info
command will reveal the true location of your cached files?Or maybe include a verbose option in thedeno run
command that prints out the location of the cached files.verbose
logging reveals the locationdeno run --log-level debug --reload example.ts
The text was updated successfully, but these errors were encountered: