0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00
denoland-deno/cli
Bartek Iwańczuk b40086fd7d
refactor(core): include_js_files! 'dir' option doesn't change specifiers (#18019)
This commit changes "include_js_files!" macro from "deno_core"
in a way that "dir" option doesn't cause specifiers to be rewritten 
to include it.

Example:
```
include_js_files! {
  dir "js",
  "hello.js",
}
```

The above definition required embedders to use:
`import ... from "internal:<ext_name>/js/hello.js"`. 
But with this change, the "js" directory in which the files are stored
is an implementation detail, which for embedders results in: 
`import ... from "internal:<ext_name>/hello.js"`.

The directory the files are stored in, is an implementation detail and 
in some cases might result in a significant size difference for the 
snapshot. As an example, in "deno_node" extension, we store the 
source code in "polyfills" directory; which resulted in each specifier 
to look like "internal:deno_node/polyfills/<module_name>", but with 
this change it's "internal:deno_node/<module_name>". 

Given that "deno_node" has over 100 files, many of them having 
several import specifiers to the same extension, this change removes
10 characters from each import specifier.
2023-03-05 02:31:38 +00:00
..
args fix: lazily surface errors in package.json deps parsing (#17974) 2023-03-03 18:27:05 -04:00
bench feat(ops): reland fast zero copy string arguments (#17996) 2023-03-03 19:04:10 +05:30
cache fix(npm): lazily install package.json dependencies only when necessary (#17931) 2023-02-24 19:35:43 -05:00
js refactor(core): include_js_files! 'dir' option doesn't change specifiers (#18019) 2023-03-05 02:31:38 +00:00
lsp refactor(runtime): factor out deno_io extension crate (#18001) 2023-03-05 00:39:48 +00:00
napi chore: forward v1.31.1 release commit to main (#17939) 2023-02-24 22:37:46 -05:00
node fix(npm): lazily install package.json dependencies only when necessary (#17931) 2023-02-24 19:35:43 -05:00
npm refactor: remove Semaphore::new(1) and use TaskQueue (#18014) 2023-03-04 20:07:11 -05:00
ops chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00
schemas feat: embed import map in the config file (#17478) 2023-01-25 21:13:40 +01:00
tests refactor(core): include_js_files! 'dir' option doesn't change specifiers (#18019) 2023-03-05 02:31:38 +00:00
tools refactor(runtime): factor out deno_io extension crate (#18001) 2023-03-05 00:39:48 +00:00
tsc chore(docs): add note about loadavg returning 0 on windows (#18006) 2023-03-04 05:31:55 -04:00
util refactor(runtime): factor out deno_io extension crate (#18001) 2023-03-05 00:39:48 +00:00
auth_tokens.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
build.rs refactor(runtime): factor out deno_io extension crate (#18001) 2023-03-05 00:39:48 +00:00
Cargo.toml fix: lazily surface errors in package.json deps parsing (#17974) 2023-03-03 18:27:05 -04: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 1.31.0 (#17906) 2023-02-24 00:16:04 +01:00
emit.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
errors.rs refactor: use deno_graph's semver and npm structs (#17791) 2023-02-15 13:20:40 -05:00
file_fetcher.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
graph_util.rs refactor: remove Semaphore::new(1) and use TaskQueue (#18014) 2023-03-04 20:07:11 -05:00
http_util.rs feat(install): follow redirects for urls with no path (#17449) 2023-02-10 10:11:11 -05:00
js.rs chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00
main.rs refactor: use deno_graph's semver and npm structs (#17791) 2023-02-15 13:20:40 -05:00
module_loader.rs refactor: use deno_graph for npm specifiers (#17858) 2023-02-22 14:15:25 -05:00
proc_state.rs fix: lazily surface errors in package.json deps parsing (#17974) 2023-03-03 18:27:05 -04: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 fix(npm): lazily install package.json dependencies only when necessary (#17931) 2023-02-24 19:35:43 -05:00
version.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
worker.rs refactor(runtime): factor out deno_io extension crate (#18001) 2023-03-05 00:39:48 +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.