1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-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 refactor: make version and user_agent &'static str (#18400) 2023-03-23 23:27:58 +01:00
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 chore: forward v1.32.1 release commit to main (#18399) 2023-03-23 22:55:23 +01:00
node feat: TypeScript 5.0.2 (except decorators) (#18294) 2023-03-21 15:46:40 +00:00
npm feat: TypeScript 5.0.2 (except decorators) (#18294) 2023-03-21 15:46:40 +00:00
ops Reland "perf(core): preserve ops between snapshots (#18080)" (#18272) 2023-03-18 18:30:04 -04:00
schemas feat: embed import map in the config file (#17478) 2023-01-25 21:13:40 +01:00
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 chore(ext/kv): add limits (#18415) 2023-03-25 15:29:36 +08:00
util perf(core) Reduce script name and script code copies (#18298) 2023-03-21 22:33:12 +00:00
auth_tokens.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
build.rs refactor: make version and user_agent &'static str (#18400) 2023-03-23 23:27:58 +01:00
Cargo.toml chore: upgrade clap to v4 (#17333) 2023-03-26 06:06:18 +02:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
deno_std.rs refactor(init): remove CURRENT_STD_URL (#18375) 2023-03-23 03:11:18 +00:00
emit.rs perf(core) Reduce script name and script code copies (#18298) 2023-03-21 22:33:12 +00:00
errors.rs feat: TypeScript 5.0.2 (except decorators) (#18294) 2023-03-21 15:46:40 +00:00
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 refactor: remove usages of map_or / map_or_else (#18212) 2023-03-15 17:46:36 -04:00
js.rs perf: disable runtime snapshot compression (#18239) 2023-03-17 08:49:46 +05:30
main.rs chore: upgrade clap to v4 (#17333) 2023-03-26 06:06:18 +02:00
module_loader.rs perf(core) Reduce script name and script code copies (#18298) 2023-03-21 22:33:12 +00:00
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 docs(cli): do not need gen doc for cli (#17260) 2023-01-04 13:19:58 +01:00
resolver.rs refactor: remove Semaphore::new(1) and use TaskQueue (#18014) 2023-03-04 20:07:11 -05:00
standalone.rs refactor: make version and user_agent &'static str (#18400) 2023-03-23 23:27:58 +01:00
version.rs refactor: make version and user_agent &'static str (#18400) 2023-03-23 23:27:58 +01:00
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.