summaryrefslogtreecommitdiff
path: root/cli/tools
AgeCommit message (Collapse)Author
2022-11-03fix(lock): add --no-lock flag to disable auto discovery of lock file (#16526)Bartek Iwańczuk
2022-11-02refactor: Combine ImportMapResolver and JsxResolver (#16508)Bartek Iwańczuk
These resolvers are used in `deno_graph` APIs. Combining them removes a lot of code and unblocks me on https://github.com/denoland/deno/pull/16157
2022-10-31feat(unstable/npm): `deno info --json` support for npm specifiers (#16472)David Sherret
2022-10-31fix(tools): show correct upgrade command for upgrading canary (#16486)sigmaSd
2022-10-28feat: support npm specifiers in `deno info` for display text output only ↵David Sherret
(#16470)
2022-10-28fix(upgrade): don't prompt if latest version is older than current binary ↵Bartek Iwańczuk
(#16464)
2022-10-28refactor: move `deno info` functionality from deno_graph to CLI (#16434)David Sherret
Closes #16423
2022-10-26fix(cli): do not log update checker when log level is quiet (#16433)David Sherret
Co-authored-by: lucacasonato <hello@lcas.dev>
2022-10-26fix(upgrade): Added error message when using canary option with M1 (#16382)doi yuki
before ``` Looking up latest version Found latest version 8c9e6c5565c1c00437d083de76cdd944e44b1d99 Checking https://dl.deno.land/canary/8c9e6c5565c1c00437d083de76cdd944e44b1d99/deno-aarch64-apple-darwin.zip Download could not be found, aborting ``` after ``` Looking up latest canary version Found latest version 8c9e6c5565c1c00437d083de76cdd944e44b1d99 error: Canary builds are not available for M1 ``` Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-10-25fix: upgrade swc_ecma_parser to 0.122.19 - deno_ast 0.20 (#16406)David Sherret
2022-10-25feat(lint): add a report lint config setting (#16045)Brenley Dueck
Builds off this PR to add a "report" setting to deno.json which can be "pretty", "compact", or "json".
2022-10-22refactor: testable update checker code (#16386)David Sherret
2022-10-21feat(upgrade): check if user has write access to deno exe (#16378)sigmaSd
2022-10-21feat(unstable/npm): initial type checking of npm specifiers (#16332)David Sherret
2022-10-21fix(upgrade): put prompt date in the past when creating a file (#16380)Bartek Iwańczuk
2022-10-21feat(update): prompt for new version once per day (#16375)Bartek Iwańczuk
<!-- Before submitting a PR, please read http://deno.land/manual/contributing 1. Give the PR a descriptive title. Examples of good title: - fix(std/http): Fix race condition in server - docs(console): Update docstrings - feat(doc): Handle nested reexports Examples of bad title: - fix #7123 - update docs - fix bugs 2. Ensure there is a related issue and it is referenced in the PR text. 3. Ensure there are tests that cover the changes. 4. Ensure `cargo test` passes. 5. Ensure `./tools/format.js` passes without changing files. 6. Ensure `./tools/lint.js` passes. -->
2022-10-20refactor(cli): update checker - use a single option instead of two (#16372)David Sherret
2022-10-20feat(cli): check for updates in background (#15974)Bert Belder
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-10-18feat(task): remove warning about being unstable (#16281)Bartek Iwańczuk
`deno task` has been in use for a few months now. It was very well received and there are not many complaints. I feel like this warning might be discouraging for some users and we don't really plan to make drastic changes to it (besides adding support for globs in unspecified future).
2022-10-15feat(unstable/task): add `INIT_CWD` env var (#16110)David Sherret
2022-10-12fix(cli): skip removing the latter part if `@` appears at the beginning (#16244)Yusuke Tanaka
This commit prevents panics that `deno compile` command ran into under certain conditions from occurring. Such conditions are as follows. - the target file name begins with `@`, OR - the stem part of the target file name is equal to one of ["main", "index", "mod", "index"] && the parent directory name starts with `@` Fixes #16243
2022-09-28feat(lint): add --compact flag for terse output (#15926)Brenley Dueck
2022-09-28feat: add --allow-sys permission flag (#16028)Yoshiya Hinosawa
2022-09-27fix(cli/vendor): handle assert type json during vendoring (#16059)Sylvain Cau
2022-09-26chore: use Rust 1.64.0 (#16035)Mathias Lafeldt
2022-09-22fix(compile): keep non-exe extension in output name on Windows (#15994)David Sherret
2022-09-22feat(npm): add flag for creating and resolving npm packages to a local ↵David Sherret
node_modules folder (#15971)
2022-09-22feat: allow exiting on two consecutive ctrl+c presses (#15981)Kayla Washburn
2022-09-19refactor: move out test files from root testdata directory into sub ↵David Sherret
directories (#15949)
2022-09-19chore: fix clippy warnings (#15944)Ben Noordhuis
Stop allowing clippy::derive-partial-eq-without-eq and fix warnings about deriving PartialEq without also deriving Eq. In one case I removed the PartialEq because it a) wasn't necessary, and b) sketchy because it was comparing floating point numbers. IMO, that's a good argument for enforcing the lint rule, because it would most likely have been caught during review if it had been enabled.
2022-09-18fix(doc): deno doc should parse modules if they haven't been parsed before ↵David Sherret
(#15941)
2022-09-07fix: upgrade deno_ast to 0.19 (#15808)David Sherret
2022-09-07feat: add --no-npm flag to disable npm: imports (#15673)Bartek Iwańczuk
This commit adds "--no-npm" flag, it's similar to "--no-remote" flag. This flag makes Deno error out if "npm:" specifier is encountered.
2022-09-03BREAKING(unstable): remove --compat mode (#15678)Bartek Iwańczuk
This commit removes "compat" mode. We shipped support for "npm:" specifier support in v1.25 and that is preferred way to interact with Node code that we will iterate and improve upon.
2022-09-02refactor: move JsError formatting to deno_runtime (#15345)Christian Dürr
This takes the existing `fmt_error` module from cli and puts it as a public module into `deno_runtime`.
2022-09-02fix(init): suppress info logs when using quiet mode (#15741)Geert-Jan Zwiers
2022-09-02refactor: extract out check code from emit (#15729)David Sherret
Closes #15535
2022-09-02fix(cli/repl): await Promise.any([])... (#15623)Jason
2022-08-30fix(fmt): add the file path to the panic messages when formatting is ↵David Sherret
unstable (#15693)
2022-08-29refactor(cli): Remove cli/node dependency on cli/compat (#15654)Bartek Iwańczuk
2022-08-27fix(cli): `deno upgrade --canary` always downloaded latest version even if ↵cuobiezi
it was already latest (#15639) Closes #15570
2022-08-23feat: binary npm commands (#15542)David Sherret
2022-08-22perf: cache swc dependency analysis and don't hold onto `ParsedSource`s in ↵David Sherret
memory (#15502)
2022-08-21chore: use Rust 1.63.0 (#15464)Mathias Lafeldt
2022-08-20feat: add "deno init" subcommand (#15469)Leo Kettmeir
This adds an init subcommand to that creates a project starter similar to cargo init. ``` $ deno init my_project Project initialized Run these commands to get started: cd my_project deno run main.ts deno run main_test.ts $ deno run main.ts Add 2 + 3 5 $ cat main.ts export function add(a: number, b: number): number { return a + b; } if (import.meta.main) { console.log("Add 2 + 3", add(2, 3)); } $ cat main_test.ts import { assertEquals } from "https://deno.land/std@0.151.0/testing/asserts.ts"; import { add } from "./main.ts"; Deno.test(function addTest() { assertEquals(add(2, 3), 5); }); ``` Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-08-11refactor(cli): consolidate most MainWorker related code to the same place ↵David Sherret
(#15459)
2022-08-10feat: add initial internal npm client and dependency resolver (#15446)David Sherret
2022-08-10fix(permissions): ignore empty values (#15447)Leo Kettmeir
2022-08-10feat(repl): add color to functions for syntax highlighting (#15434)sigmaSd
2022-08-04fix(test): output parallel test results independently (#15399)Nayeem Rahman