mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
4d1a14ca7f
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> |
||
---|---|---|
.. | ||
coverage | ||
init | ||
repl | ||
vendor | ||
bench.rs | ||
bundle.rs | ||
check.rs | ||
doc.rs | ||
fmt.rs | ||
info.rs | ||
installer.rs | ||
lint.rs | ||
mod.rs | ||
run.rs | ||
standalone.rs | ||
task.rs | ||
test.rs | ||
upgrade.rs |