summaryrefslogtreecommitdiff
path: root/cli/main.rs
AgeCommit message (Collapse)Author
2022-03-28chore: update clap and completions (#14136)Robert
2022-03-11feat: "deno bench" subcommand (#13713)Bartek Iwańczuk
This commit adds "deno bench" subcommand and "Deno.bench()" API that allows to register bench cases. The API is modelled after "Deno.test()" and "deno test" subcommand. Currently the output is rudimentary and bench cases and not subject to "ops" and "resource" sanitizers. Co-authored-by: evan <github@evan.lol>
2022-03-10feat: "deno task" subcommand (#13725)Bartek Iwańczuk
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-03-11fix(compat): cjs/esm interop for dynamic imports (#13792)Bartek Iwańczuk
This commit fixes CJS/ESM interop in compat mode for dynamically imported modules. "ProcState::prepare_module_load" was changed to accept a list of "graph roots" without associated "module kind". That module kind was always hardcoded to "ESM" which is not true for CJS/ESM interop - a CommonJs module might be imported using "import()" function. In such case the root of the graph should have "CommonJs" module kind instead of "ESM".
2022-03-10fix(info): print deno info paths with unescaped backslashes on windows (#13847)Geert-Jan Zwiers
2022-03-09refactor: add cli/display.rs module (#13879)Bartek Iwańczuk
2022-03-01fix(runtime): disable console color for non tty stdout (#13782)Antonio Musolino
2022-02-24chore: upgrade to Rust 1.59 (#13767)David Sherret
2022-02-24fix(compile): Support import maps (#13756)Divy Srivastava
2022-02-23feat: allow specification of import map in config file (#13739)Kitson Kelly
Closes: #12800
2022-02-16feat: deno vendor (#13670)David Sherret
2022-02-15feat(cli): Replace bundling with eszip in deno compile (#13563)William Tetlow
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-02-11refactor: use `Arc` instead of making copies of `Flags` struct (#13610)Maxim
2022-02-11compat: support --compat in web workers (#13629)Bartek Iwańczuk
Adds another callback to WebWorkerOptions that allows to execute some modules before actual worker code executes. This allows to set up Node global using std/node.
2022-02-07refactor: factor out CDP message types (#13551)Leo Kettmeir
2022-02-01refactor: integrate deno_graph breaking changes (#13495)Kitson Kelly
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-01-31feat(cli): add "--no-clear-screen" flag (#13454)Zheyu Zhang
This commit adds "--no-clear-screen" flag which can be used with "--watch" flag to disable clearing of terminal screen on each file change.
2022-01-31Revert "refactor: factor out CDP message types (#13501)" (#13540)Bartek Iwańczuk
This reverts commit 382a978859a7a7a4351542be818bb2e59523429c.
2022-01-27refactor: factor out CDP message types (#13501)Leo Kettmeir
2022-01-14chore: upgrade clap to v3 (#13266)Leo Kettmeir
2022-01-13refactor: move transpiling to deno_ast (#13332)David Sherret
2022-01-12feat(cli): add ignore directives to bundled code (#13309)juju
This commit adds lint and fmt ignore directives to bundled code as well as a comment stating that the code was bundled and shouldn't be edited manually.
2022-01-10cli(compile): fix output flag behaviour on compile command (#13299)Rabin Gaire
2022-01-07chore: update copyright to 2022 (#13306)Ryan Dahl
Co-authored-by: Erfan Safari <erfanshield@outlook.com>
2022-01-03feat(compat) preload Node.js built-in modules in global vars REPL (#13127)VishnuJin
This commit adds preloading of built-in Node.js modules in the REPL if running with "deno repl --compat --unstable".
2021-12-30feat(test): Add support for "deno test --compat" (#13235)Steven Guerrero
2021-12-29cleanup(cli): use op Extensions (#13223)Aaron O'Mullan
Enabling op-middleware for overrides in lieu of imperative .replace_op() etc... Impacts #13219, #12938, #13122
2021-12-22chore: update deno_graph and deno_doc (#13173)Kitson Kelly
2021-12-21refactor: cleanup cli/main.rs (#13160)Bartek Iwańczuk
2021-12-20refactor: Use dedicated flags structures (#13148)Bartek Iwańczuk
2021-12-20chore: add custom panic message (#13145)Luca Casonato
2021-12-16refactor(cli): use GraphData for check and emit (#12960)Nayeem Rahman
2021-12-15feat(watch): support watching external files (#13087)Jesper van den Ende
2021-12-11fix: op_set_exit_code (#13034)Bartek Iwańczuk
Fixes "op_set_exit_code" by sharing a single "Arc" between all workers (via "op state") instead of having a "global" value stored in "deno_runtime" crate. As a consequence setting an exit code is always scoped to a tree of workers, instead of being overridable if there are multiple worker tree (like in "deno test --jobs" subcommand). Refactored "cli/main.rs" functions to return "Result<i32, AnyError>" instead of "Result<(), AnyError>" so they can return exit code.
2021-11-30feat: add `--no-check=remote` flag (#12766)Kitson Kelly
Closes #11970
2021-11-28feat(runtime): add op_set_exit_code (#12911)Ben Noordhuis
Set the exit code to use if none is provided to Deno.exit(), or when Deno exits naturally. Needed for process.exitCode Node compat. Paves the way for #12888.
2021-11-24fix(lsp): lsp should respect include/exclude files in format config (#12876)David Sherret
2021-11-24compat: support compat mode in REPL (#12882)Bartek Iwańczuk
This commit introduces "ProcState::maybe_resolver" field, which stores a single instance of resolver for the whole lifetime of the process, instead of creating these resolvers for each creation of module graph. As a result, this resolver can be used in fallback case where graph is not constructed (REPL, loading modules using "require") unifying resolution logic.
2021-11-23fix(cli/compile): skip bundling for pre-bundled code (#12687)Zheyu Zhang
2021-11-24fix(cli): don't cache .tsbuildinfo unless emitting (#12830)Nayeem Rahman
Fixes #12755 Fixes #12807 Fixes #12832
2021-11-16fix(cli): short-circuit in prepare_module_load() (#12604)Nayeem Rahman
2021-11-09feat(cli): support React 17 JSX transforms (#12631)Kitson Kelly
Closes #8440
2021-11-08refactor: move `mod tokio_util` to runtime (#12332)Bert Belder
This avoids a bunch of duplicated code.
2021-11-01port check_if_should_use_esm_loader to rust (#12562)Ryan Dahl
2021-10-27feat(ext/webstorage): use implied origin when --location not set (#12548)Kitson Kelly
Closes #11882 BREAKING CHANGE: Previously when `--location` was set, the unique storage key was derived from the the URL of the location instead of just the origin. This change correctly uses just the origin. This may cause previously persisted storage to change its key and data to not be available with the same location as before.
2021-10-26chore: upgrade Rust to 1.56.0 (#12514)Bert Belder
2021-10-19refactor: use a single Mutex in ProcState for module graph (#12489)Bartek Iwańczuk
This commit factors out 4 different fields from "ProcState", that are behind "Arc<Mutex<>>" into a single struct behind a single mutex.
2021-10-18feat(unstable): Node CJS and ESM resolvers for compat mode (#12424)Bartek Iwańczuk
This commit adds CJS and ESM Node resolvers to the "--compat" mode. The functionality is spread across "cli/compat" module and Node compatibility layer in "deno_std/node"; this stems from the fact that ES module resolution can only be implemented in Rust as it needs to directly integrated with "deno_core"; however "deno_std/node" already provided CJS module resolution. Currently this resolution is only active when running a files using "deno run --compat --unstable <filename>", and is not available in other subcommands, which will be changed in follow up commits.
2021-10-11refactor: integrate deno_graph into CLI (#12369)Kitson Kelly
2021-10-08feat(compat): inject Node globals in REPL (#12352)Bartek Iwańczuk