"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/linking_to_external_code/reloading_modules.md" between
deno-1.12.0.tar.gz and deno-1.12.1.tar.gz

About: Deno is is a simple, modern and secure runtime for JavaScript and TypeScript that uses the V8 JavaScript engine and is built in Rust.

reloading_modules.md  (deno-1.12.0):reloading_modules.md  (deno-1.12.1)
## Reloading modules ## Reloading modules
By default, a module in the cache will be reused without fetching or 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 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 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 `DENO_DIR` cache using the `--reload` flag of the `deno cache` subcommand. It's
usage is described below: usage is described below:
### To reload everything ### To reload everything
```ts ```bash
deno cache --reload my_module.ts deno cache --reload my_module.ts
``` ```
### To reload specific modules ### To reload specific modules
Sometimes we want to upgrade only some modules. You can control it by passing an Sometimes we want to upgrade only some modules. You can control it by passing an
argument to a `--reload` flag. argument to a `--reload` flag.
To reload all \$STD_VERSION standard modules: To reload all \$STD_VERSION standard modules:
```ts ```bash
deno cache --reload=https://deno.land/std@$STD_VERSION my_module.ts deno cache --reload=https://deno.land/std@$STD_VERSION my_module.ts
``` ```
To reload specific modules (in this example - colors and file system copy) use a To reload specific modules (in this example - colors and file system copy) use a
comma to separate URLs. comma to separate URLs.
```ts ```bash
deno cache --reload=https://deno.land/std@$STD_VERSION/fs/copy.ts,https://deno.l and/std@$STD_VERSION/fmt/colors.ts my_module.ts deno cache --reload=https://deno.land/std@$STD_VERSION/fs/copy.ts,https://deno.l and/std@$STD_VERSION/fmt/colors.ts my_module.ts
``` ```
<!-- Should this be part of examples? --> <!-- Should this be part of examples? -->
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)