1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/ext
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
..
broadcast_channel refactor: remove prefix from include_js_files & use extension name (#17683) 2023-02-07 21:09:50 +00:00
cache refactor: remove prefix from include_js_files & use extension name (#17683) 2023-02-07 21:09:50 +00:00
console fix(ext/console): Only right-align integers in console.table() (#17389) 2023-02-08 18:14:40 +09:00
crypto perf: use ops for node:crypto ciphers (#17819) 2023-02-20 22:22:28 +05:30
fetch refactor: remove prefix from include_js_files & use extension name (#17683) 2023-02-07 21:09:50 +00:00
ffi fix(ext/ffi): improve error messages in FFI module (#17786) 2023-02-15 09:41:59 +05:30
flash feat(flash): add 2nd param to handler to get remote address (#17633) 2023-02-15 16:37:41 +01:00
http perf(http): remove allocations checking upgrade and connection header values (#17727) 2023-02-12 20:51:07 +00:00
napi feat(node): stabilize Node-API (#17553) 2023-02-14 15:53:00 +01:00
net feat: add signal option to Deno.resolveDns (#17384) 2023-02-11 14:14:02 +00:00
node feat: auto-discover package.json for npm dependencies (#17272) 2023-02-20 19:14:06 +01:00
tls chore: forward v1.30.3 release commit to main (#17677) 2023-02-07 04:15:38 +00:00
url refactor(core): definition of "ExtensionFileSource" (#17823) 2023-02-20 01:11:56 +01:00
web refactor(core): definition of "ExtensionFileSource" (#17823) 2023-02-20 01:11:56 +01:00
webgpu refactor: move webgpu files to ext root (#17832) 2023-02-20 16:48:02 +00:00
webidl refactor(core): definition of "ExtensionFileSource" (#17823) 2023-02-20 01:11:56 +01:00
websocket fix(ext/websocket): extra ws pongs sent (#17762) 2023-02-13 14:58:32 +00:00
webstorage refactor: remove prefix from include_js_files & use extension name (#17683) 2023-02-07 21:09:50 +00:00