1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-30 16:40:57 -05:00
denoland-deno/cli/tests/integration
David Sherret 2daba9c0ff
feat(unstable/npm): support peer dependencies (#16561)
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-11-08 21:09:40 +01:00
..
bench_tests.rs feat: subcommands type-check only local files by default (#14623) 2022-05-17 23:53:42 +02:00
bundle_tests.rs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
cache_tests.rs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
cert_tests.rs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
check_tests.rs fix(typescript): allow synthetic default imports when using ModuleKind.ESNext (#16438) 2022-10-27 08:12:40 -04:00
compile_tests.rs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
coverage_tests.rs fix(coverage): ensure coverage is only collected in certain situations (#15467) 2022-08-12 15:21:17 -04:00
doc_tests.rs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
eval_tests.rs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
flags_tests.rs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
fmt_tests.rs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
info_tests.rs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
init_tests.rs fix(init): suppress info logs when using quiet mode (#15741) 2022-09-02 17:59:36 +02:00
inspector_tests.rs feat: allow exiting on two consecutive ctrl+c presses (#15981) 2022-09-22 04:42:09 -04:00
install_tests.rs chore(test_util): add new string assertion macros (#14928) 2022-06-21 15:25:07 -04:00
lint_tests.rs feat(lint): add a report lint config setting (#16045) 2022-10-25 14:21:20 +02:00
lsp_tests.rs chore: improve built-in API documentation (#16158) 2022-10-26 15:53:48 +02:00
mod.rs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
npm_tests.rs feat(unstable/npm): support peer dependencies (#16561) 2022-11-08 21:09:40 +01:00
repl_tests.rs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
run_tests.rs fix(lock): only store integrities for http: and https: imports (#16558) 2022-11-08 21:09:39 +01:00
task_tests.rs feat(unstable/task): add INIT_CWD env var (#16110) 2022-10-15 16:46:28 -04:00
test_tests.rs fix(test): output parallel test results independently (#15399) 2022-08-04 12:38:40 -04:00
upgrade_tests.rs chore(tests): use custom temp dir creation for the tests (#14153) 2022-04-01 11:15:37 -04:00
vendor_tests.rs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
watcher_tests.rs test: disable run_watch_external_watch_files on macOS (#16477) 2022-10-30 21:25:15 +01:00
worker_tests.rs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00