From 4e23a5b1fc2ba0e26f1832a2c374a1f3aef9e7ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 8 May 2024 20:34:46 +0100 Subject: 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 ` 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 ` installs a package as a globally available binary (the same as `deno install ` in 1.0) --------- Co-authored-by: Nathan Whitaker --- tests/specs/install/future_install_node_modules/package.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/specs/install/future_install_node_modules/package.json (limited to 'tests/specs/install/future_install_node_modules/package.json') diff --git a/tests/specs/install/future_install_node_modules/package.json b/tests/specs/install/future_install_node_modules/package.json new file mode 100644 index 000000000..54ca824d6 --- /dev/null +++ b/tests/specs/install/future_install_node_modules/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@denotest/esm-basic": "*" + } +} -- cgit v1.2.3