1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-04 08:54:20 -05:00
denoland-deno/cli/tests/integration
Bartek Iwańczuk 4d1a14ca7f
feat: auto-discover package.json for npm dependencies (#17272)
This commits adds auto-discovery of "package.json" file when running
"deno run" and "deno task" subcommands. In case of "deno run" the
"package.json" is being looked up starting from the directory of the
script that is being run, stopping early if "deno.json(c)" file is found
(ie. FS tree won't be traversed "up" from "deno.json").

When "package.json" is discovered the "--node-modules-dir" flag is
implied, leading to creation of local "node_modules/" directory - we
did that, because most tools relying on "package.json" will expect
"node_modules/" directory to be present (eg. Vite). Additionally 
"dependencies" and "devDependencies" specified in the "package.json"
are downloaded on startup. 

This is a stepping stone to supporting bare specifier imports, but
the actual integration will be done in a follow up commit.

---------

Co-authored-by: David Sherret <dsherret@gmail.com>
2023-02-20 19:14:06 +01:00
..
bench_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
bundle_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
cache_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
cert_tests.rs chore: forward v1.30.3 release commit to main (#17677) 2023-02-07 04:15:38 +00:00
check_tests.rs feat: support node built-in module imports (#17264) 2023-01-24 09:05:54 -05:00
compile_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
coverage_tests.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
doc_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
eval_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
flags_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
fmt_tests.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
info_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
init_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
inspector_tests.rs test: ignore inspector tests for npm integration (#17796) 2023-02-16 11:44:16 +01:00
install_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
js_unit_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
lint_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
lsp_tests.rs fix: revert lsp related internal specifiers (#17673) 2023-02-06 22:49:49 +01:00
mod.rs test: add node compat tests (#17805) 2023-02-17 23:58:52 +09:00
node_compat_tests.rs test: add node compat tests (#17805) 2023-02-17 23:58:52 +09:00
node_unit_tests.rs test: add unit tests from std/node (#17794) 2023-02-16 14:30:14 +01:00
npm_tests.rs fix(lockfile): emit trailing newline (#17618) 2023-02-01 15:57:02 -05:00
repl_tests.rs refactor: deno_graph 0.43 upgrade (#17692) 2023-02-09 22:00:23 -05:00
run_tests.rs feat: auto-discover package.json for npm dependencies (#17272) 2023-02-20 19:14:06 +01:00
task_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
test_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
upgrade_tests.rs chore: use rustfmt imports_granularity option (#17421) 2023-01-14 23:18:58 -05:00
vendor_tests.rs refactor: make resolver required (#17783) 2023-02-15 11:30:54 -05:00
watcher_tests.rs feat: auto-discover package.json for npm dependencies (#17272) 2023-02-20 19:14:06 +01:00
worker_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00