deno/cli
Marvin Hagemeister 8c051dbd1a
fix(ext/node): add missing _preloadModules hook (#18447)
This internal node hook is used by libraries such as `ts-node` when used
as a require hook `node -r ts-node/register`. That combination is often
used with test frameworks like `mocha` or `jasmine`.

We had a reference to `Module._preloadModules` in our code, but the
implementation was missing. While fixing this I also noticed that the
`fakeParent` module that we create internally always threw because of
the `pathDirname` check on the module id in the constructor of `Mdoule`.
So this code path was probably broken for a while.

```txt
✖ ERROR: Error: Empty filepath.
    at pathDirname (ext:deno_node/01_require.js:245:11)
    at new Module (ext:deno_node/01_require.js:446:15)
    at Function.Module._resolveFilename (ext:deno_node/01_require.js:754:28)
    at Function.resolve (ext:deno_node/01_require.js:1015:19)
```
2023-03-27 21:54:22 +02:00
..
args refactor(cli): remove Lazy<String> and fix help outputs (#18462) 2023-03-27 18:28:41 +02:00
bench fix(cli/bench): look for clone3 syscalls for thread count (#18456) 2023-03-27 14:45:00 +00:00
cache
js feat(test): print pending tests on sigint (#18246) 2023-03-25 21:32:11 +02:00
lsp feat(test): print pending tests on sigint (#18246) 2023-03-25 21:32:11 +02:00
napi
node
npm
ops
schemas
tests fix(ext/node): add missing _preloadModules hook (#18447) 2023-03-27 21:54:22 +02:00
tools fix(cli): add colors to "Module not found" error frame (#18437) 2023-03-27 01:10:47 +02:00
tsc
util
auth_tokens.rs
build.rs
Cargo.toml chore: upgrade clap to v4 (#17333) 2023-03-26 06:06:18 +02:00
deno.ico
deno_std.rs
emit.rs
errors.rs
file_fetcher.rs fix(cli): don't store blob and data urls in the module cache (#18261) 2023-03-26 12:24:10 +03:00
graph_util.rs fix(cli): add colors to "Module not found" error frame (#18437) 2023-03-27 01:10:47 +02:00
http_util.rs
js.rs
main.rs chore: upgrade clap to v4 (#17333) 2023-03-26 06:06:18 +02:00
module_loader.rs
proc_state.rs fix(cli): don't store blob and data urls in the module cache (#18261) 2023-03-26 12:24:10 +03:00
README.md
resolver.rs
standalone.rs
version.rs
worker.rs refactor: use default implementation of BootstrapOptions (#18439) 2023-03-26 04:38:45 +00:00

Deno CLI Crate

crates

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core to provide the executable.