forked from denoland/deno
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: improve linking to external code docs (denoland#6158)
- Loading branch information
Showing
4 changed files
with
90 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,34 @@ | ||
## Reloading modules | ||
|
||
You can invalidate your local `DENO_DIR` cache using the `--reload` flag. It's | ||
By default, a module in the cache will be reused without fetching or | ||
re-compiling it. Sometimes this is not desirable and you can force deno to | ||
refetch and recompile modules into the cache. You can invalidate your local | ||
`DENO_DIR` cache using the `--reload` flag of the `deno cache` subcommand. It's | ||
usage is described below: | ||
|
||
To reload everything | ||
### To reload everything | ||
|
||
`--reload` | ||
```ts | ||
deno cache --reload my_module.ts | ||
|
||
``` | ||
|
||
### To reload specific modules | ||
|
||
Sometimes we want to upgrade only some modules. You can control it by passing an | ||
argument to a `--reload` flag. | ||
|
||
To reload all standard modules | ||
To reload all v0.55.0 standard modules | ||
|
||
`--reload=https://deno.land/std` | ||
```ts | ||
deno cache --reload=https://deno.land/std@v0.55.0 my_module.ts | ||
``` | ||
|
||
To reload specific modules (in this example - colors and file system copy) use a | ||
comma to separate URLs | ||
|
||
`--reload=https://deno.land/std/fs/copy.ts,https://deno.land/std/fmt/colors.ts` | ||
```ts | ||
deno cache --reload=https://deno.land/std/fs/copy.ts,https://deno.land/std/fmt/colors.ts my_module.ts | ||
``` | ||
|
||
<!-- Should this be part of examples? --> |