1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/tests/specs/install/no_future_install_global
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
..
__test__.jsonc FUTURE: deno install changes (#23498) 2024-05-08 12:34:46 -07:00
assert.js FUTURE: deno install changes (#23498) 2024-05-08 12:34:46 -07:00
install.out FUTURE: deno install changes (#23498) 2024-05-08 12:34:46 -07:00
main.js FUTURE: deno install changes (#23498) 2024-05-08 12:34:46 -07:00
package.json FUTURE: deno install changes (#23498) 2024-05-08 12:34:46 -07:00