summaryrefslogtreecommitdiff
path: root/cli/fs_util.rs
AgeCommit message (Collapse)Author
2022-11-28refactor: create util folder, move nap_sym to napi/sym, move http_cache to ↵David Sherret
cache folder (#16857)
2022-11-25refactor(lsp): consolidate relative_specifier (#16780)David Sherret
Closes #14840
2022-11-18chore: fix windows-only clippy errors (#16703)David Sherret
2022-11-18chore: use Rust 1.65.0 (#16688)Aaron O'Mullan
2022-11-08feat(unstable/npm): support peer dependencies (#16561)David Sherret
This adds support for peer dependencies in npm packages. 1. If not found higher in the tree (ancestor and ancestor siblings), peer dependencies are resolved like a dependency similar to npm 7. 2. Optional peer dependencies are only resolved if found higher in the tree. 3. This creates "copy packages" or duplicates of a package when a package has different resolution due to peer dependency resolution—see https://pnpm.io/how-peers-are-resolved. Unlike pnpm though, duplicates of packages will have `_1`, `_2`, etc. added to the end of the package version in the directory in order to minimize the chance of hitting the max file path limit on Windows. This is done for both the local "node_modules" directory and also the global npm cache. The files are hard linked in this case to reduce hard drive space. This is a first pass and the code is definitely more inefficient than it could be. Closes #15823
2022-10-28feat: support npm specifiers in `deno info` for display text output only ↵David Sherret
(#16470)
2022-09-22feat(npm): add flag for creating and resolving npm packages to a local ↵David Sherret
node_modules folder (#15971)
2022-09-19refactor: move out test files from root testdata directory into sub ↵David Sherret
directories (#15949)
2022-08-10feat: add initial internal npm client and dependency resolver (#15446)David Sherret
2022-07-15refactor: remove redundant qualification of symbols in Rust (#15201)orvit
2022-07-04chore(test): fix `test_collect_specifiers` windows path to specifier code ↵Roj
(#15072)
2022-07-04fix(cli): handle collecting a directory with file:// (#15002)Roj
2022-06-14feat(vendor): support using an existing import map (#14836)David Sherret
2022-05-02fix(test/bench): accept file protocol module specifier CLI args (#14429)Adilson Schmitt Junior
2022-04-01chore(tests): use custom temp dir creation for the tests (#14153)David Sherret
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-02-16feat: deno vendor (#13670)David Sherret
2022-01-17feat: auto-discover config file (#13313)Ryan Dahl
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-05fix: support `mts`, `cjs` & `cts` files for `deno test` & `deno fmt` (#13274)Leo Kettmeir
2021-11-24fix(lsp): lsp should respect include/exclude files in format config (#12876)David Sherret
2021-11-23fix(cli): config file should resolve paths relative to the config file (#12867)David Sherret
* Add `specifier_to_file_path` to support converting a ModuleSpecifier with a unix-style path to a PathBuf on Windows.
2021-11-16refactor: re-export anyhow from deno_core (#12777)Ryan Dahl
2021-11-01fix(fmt/lint): strip unc paths on Windows when displaying file paths in lint ↵David Sherret
and fmt (#12606)
2021-10-30fix(cli): linter/formater watches current directory without args (#12550)Zheyu Zhang
2021-10-25fix: support verbatim UNC prefixed paths on Windows (#12438)David Sherret
2021-09-23feat(cli/fmt): support more markdown extensions (#12195)Satya Rohith
2021-08-24feat(cli): add --ignore flag to test command (#11712)Casper Beyer
2021-08-14refactor: normalize `is_supported_` check naming (#11698)Casper Beyer
Normalizes the naming of the functions used to determine if a path is a suitable match for the test runner and placed them both in the the fs_util module.
2021-08-14fix(cli): retain input order of remote specifiers (#11700)Casper Beyer
Specifier collection partitions remote specifiers in their own group which is appended to the collected specifiers at the end of the routine meaning that the input order isn't respected for remote specifiers.
2021-08-13refactor(cli): generalize module specifier collection (#11679)Casper Beyer
2021-08-11chore: move test files to testdata directory (#11601)David Sherret
2021-07-29feat: type check codeblocks in Markdown file with "deno test --doc" (#11421)Casper Beyer
2021-06-25fix(lsp): reload import registries should not error when the module ↵David Sherret
registries directory does not exist (#11123)
2021-04-21fix: do not panic on not found cwd (#10238)Satya Rohith
2021-03-25upgrade: Rust 1.51.0 (#9895)Yusuke Tanaka
2021-02-18feat: add json(c) support to deno fmt (#9292)Satya Rohith
This commit adds support for formatting JSON and JSONC in "deno fmt". New values "json" and "jsonc" are added to "--ext" flag for standard input processing.
2021-01-19feat: add markdown support to deno fmt (#8887)Satya Rohith
This commit adds support for formatting markdown files with "deno fmt". Additionally "--ext={js|jsx|ts|tsx|md}" flag was added to "deno fmt" that allows to specify file type when providing contents over stdio.
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2020-12-18fix: atomically write files to $DENO_DIR (#8822)Luca Casonato
2020-11-22feat(unstable): Support --watch flag for bundle and fmt subcommands (#8276)Yusuke Tanaka
This commit adds support for "--watch" flag for "bundle" and "fmt" subcommands. In addition to this, it refactors "run --watch" command so that module resolution will occur every time the file watcher detects file addition/deletion, which allows the watcher to observe a file that is newly added to the dependency as well.
2020-11-16refactor(cli): rename fs module to fs_util (#8380)Bartek Iwańczuk
This commit renames "fs" module in "cli/" to "fs_util". This is purely cosmetic change; there were a few places which aliased "crate::fs" to "deno_fs" which was very confusing with "fs" module in ops.