deno/cli
Andreu Botella 9def44979a
fix(cli): Don't strip shebangs from modules (#13220)
Deno's module loader currently strips a shebang if a module file
starts with one. However, this is no longer necessary, since there is
a stage-3 TC39 that adds support for shebangs (or "hashbangs") to the
language (https://github.com/tc39/proposal-hashbang), and V8, `tsc`
and `swc` all support it.

Furthermore, stripping shebangs causes a correctness bug with JSON
modules, since a JSON file with a shebang should not parse as a JSON
module, yet it does with this stripping. This change fixes this.
2022-01-16 16:48:32 +01:00
..
bench chore: rename cli/bench/fixtures to cli/bench/testdata (#13363) 2022-01-13 16:25:20 +01:00
compat chore: forward v1.17.3 to main (#13364) 2022-01-13 20:47:42 +01:00
dts feat(ext/ffi): UnsafeFnPointer API (#13340) 2022-01-12 12:38:26 +01:00
lsp chore: upgrade to rust 1.58 (#13377) 2022-01-15 07:10:12 +01:00
ops refactor: upgrade to import_map v0.6 (#13368) 2022-01-13 18:17:56 -05:00
schemas feat(lsp): improve registry completion suggestions (#13023) 2021-12-14 06:24:11 +11:00
tests fix(cli): Don't strip shebangs from modules (#13220) 2022-01-16 16:48:32 +01:00
tools chore: upgrade to rust 1.58 (#13377) 2022-01-15 07:10:12 +01:00
tsc chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
auth_tokens.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
build.rs feat(cli, runtime): compress snapshots (#13320) 2022-01-10 15:51:23 -08:00
cache.rs refactor: move transpiling to deno_ast (#13332) 2022-01-13 11:58:00 -05:00
Cargo.toml chore: upgrade clap to v3 (#13266) 2022-01-14 17:38:17 +01:00
checksum.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
config_file.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
deno_dir.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
diagnostics.rs chore: upgrade to rust 1.58 (#13377) 2022-01-15 07:10:12 +01:00
diff.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
disk_cache.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
emit.rs refactor: move transpiling to deno_ast (#13332) 2022-01-13 11:58:00 -05:00
errors.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
file_fetcher.rs fix(cli): Don't strip shebangs from modules (#13220) 2022-01-16 16:48:32 +01:00
file_watcher.rs chore: upgrade to rust 1.58 (#13377) 2022-01-15 07:10:12 +01:00
flags.rs chore: upgrade clap to v3 (#13266) 2022-01-14 17:38:17 +01:00
flags_allow_net.rs chore: upgrade clap to v3 (#13266) 2022-01-14 17:38:17 +01:00
fmt_errors.rs chore: upgrade to rust 1.58 (#13377) 2022-01-15 07:10:12 +01:00
fs_util.rs cli(compile): fix output flag behaviour on compile command (#13299) 2022-01-10 23:24:39 -05:00
graph_util.rs chore: upgrade to rust 1.58 (#13377) 2022-01-15 07:10:12 +01:00
http_cache.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
http_util.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
lockfile.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
logger.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
main.rs chore: upgrade clap to v3 (#13266) 2022-01-14 17:38:17 +01:00
module_loader.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
proc_state.rs refactor: upgrade to import_map v0.6 (#13368) 2022-01-13 18:17:56 -05:00
README.md Remove deno_typescript (#6813) 2020-07-20 19:49:57 -04:00
resolver.rs refactor: upgrade to import_map v0.6 (#13368) 2022-01-13 18:17:56 -05:00
source_maps.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
standalone.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
text_encoding.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
tsc.rs refactor: move transpiling to deno_ast (#13332) 2022-01-13 11:58:00 -05:00
unix_util.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
version.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
windows_util.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00

Deno CLI Crate

crates docs

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

The deno crate uses the deno_core to provide the executable.