deno/cli/args
Bartek Iwańczuk 4e23a5b1fc
FUTURE: deno install changes (#23498)
This PR implements the changes we plan to make to `deno install` in deno
2.0.
- `deno install` without arguments caches dependencies from
`package.json` / `deno.json` and sets up the `node_modules` folder
- `deno install <pkg>` adds the package to the config file (either
`package.json` or `deno.json`), i.e. it aliases `deno add`
- `deno add` can also add deps to `package.json` (this is gated behind
`DENO_FUTURE` due to uncertainty around handling projects with both
`deno.json` and `package.json`)
- `deno install -g <bin>` installs a package as a globally available
binary (the same as `deno install <bin>` in 1.0)

---------

Co-authored-by: Nathan Whitaker <nathan@deno.com>
2024-05-08 12:34:46 -07:00
..
deno_json.rs refactor: move deno json functionality to args module (#22710) 2024-03-05 15:45:44 -05:00
flags_net.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
flags.rs FUTURE: deno install changes (#23498) 2024-05-08 12:34:46 -07:00
import_map.rs fix(workspace): provide workspace members as 'imports' in import map (#23492) 2024-04-23 17:21:06 +02:00
lockfile.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
mod.rs fix(compile): relative permissions should be retained as relative (#23719) 2024-05-06 19:21:58 -04:00
package_json.rs feat(lockfile): track JSR and npm dependencies in config file (#22004) 2024-01-22 22:31:12 +01:00