1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-01 16:51:13 -05:00
denoland-deno/cli/tools
David Sherret cacc8c9a4d
feat: top level package.json install when node_modules dir is explicitly opted into (#19233)
When someone explicitly opts into using the node_modules dir via
`--node-modules-dir` or setting `"nodeModulesDir": true` in the
deno.json file, we should eagerly ensure a top level package.json
install is done on startup. This was initially always done when we added
package.json support and a package.json was auto-discovered, but scaled
it back to be lazily done when a bare specifier matched an entry in the
package.json because of how disruptive it was for people using Deno
scripts in Node projects. That said, it does not make sense for someone
to opt-into having deno control and use their node_modules directory and
not want a package.json install to occur. If such a rare scenario
exists, the `DENO_NO_PACKAGE_JSON=1` environment variable can be set.

Ideally, we would only ever use a node_modules directory with this
explicit opt-in so everything is very clear, but we still have this
automatic scenario when there's a package.json in order to make more
node projects work out of the box.
2023-05-23 18:51:48 -04:00
..
coverage refactor(cli): remove ProcState - add CliFactory (#18900) 2023-05-01 14:35:23 -04:00
init refactor(init): remove CURRENT_STD_URL (#18375) 2023-03-23 03:11:18 +00:00
repl fix(npm): store npm binary command resolution in lockfile (#19219) 2023-05-22 16:55:04 -04:00
vendor feat(vendor): support for npm specifiers (#19186) 2023-05-19 22:39:27 +00:00
bench.rs refactor(core): bake single-thread assumptions into spawn/spawn_blocking (#19056) 2023-05-14 15:40:01 -06:00
bundle.rs refactor(cli): remove ProcState - add CliFactory (#18900) 2023-05-01 14:35:23 -04:00
check.rs refactor(cli): remove ProcState - add CliFactory (#18900) 2023-05-01 14:35:23 -04:00
compile.rs feat(compile): remove need for --unstable with npm specifiers (#19185) 2023-05-19 01:26:49 +02:00
doc.rs refactor(cli): remove ProcState - add CliFactory (#18900) 2023-05-01 14:35:23 -04:00
fmt.rs refactor(core): bake single-thread assumptions into spawn/spawn_blocking (#19056) 2023-05-14 15:40:01 -06:00
info.rs fix(npm): improved optional dependency support (#19135) 2023-05-17 17:38:50 -04:00
installer.rs perf: lazily create RootCertStore (#18938) 2023-05-01 16:42:05 -04:00
lint.rs refactor(cli): remove ProcState - add CliFactory (#18900) 2023-05-01 14:35:23 -04:00
mod.rs feat(compile): unstable npm and node specifier support (#19005) 2023-05-10 20:06:59 -04:00
run.rs feat: top level package.json install when node_modules dir is explicitly opted into (#19233) 2023-05-23 18:51:48 -04:00
task.rs fix(npm): run pre and post tasks if present (#19178) 2023-05-18 15:51:17 -04:00
test.rs refactor(core): bake single-thread assumptions into spawn/spawn_blocking (#19056) 2023-05-14 15:40:01 -06:00
upgrade.rs fix(deno/upgrade): allow --version vX.Y.Z (#19139) 2023-05-16 03:21:59 +02:00