1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/ext/node
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
..
crypto perf: use ops for node:crypto ciphers (#17819) 2023-02-20 22:22:28 +05:30
polyfills refactor: use ops for idna & punycode (#17817) 2023-02-20 18:47:42 +01:00
01_node.js test: add unit tests from std/node (#17794) 2023-02-16 14:30:14 +01:00
02_require.js refactor: Use ES modules for internal runtime code (#17648) 2023-02-07 20:22:46 +01:00
Cargo.toml refactor: use ops for idna & punycode (#17817) 2023-02-20 18:47:42 +01:00
errors.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
idna.rs refactor: use ops for idna & punycode (#17817) 2023-02-20 18:47:42 +01:00
lib.rs refactor: use ops for idna & punycode (#17817) 2023-02-20 18:47:42 +01:00
module_es_shim.js refactor: allow to provide polyfills for Node modules from the snapshot (#17706) 2023-02-10 11:40:45 +00:00
ops.rs refactor: clean up "cli/node/mod.rs" and "ext/node" (#17713) 2023-02-10 10:26:39 -05:00
package_json.rs feat: auto-discover package.json for npm dependencies (#17272) 2023-02-20 19:14:06 +01:00
path.rs chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00
polyfill.rs feat: wire up ext/node to the Node compatibility layer (#17785) 2023-02-15 19:44:52 +01:00
README.md chore(ext/node): correct publishing for ext/node (#15461) 2022-08-11 17:25:41 -04:00
resolution.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
v8.rs feat(ext/node): implement node:v8 (#17806) 2023-02-17 18:48:09 +05:30
winerror.rs perf(ext/node): move winerror binding to rust (#17792) 2023-02-16 19:19:32 +05:30

deno_node

require and other node related functionality for Deno.