1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/cli/tests/integration
David Sherret 40a72f3555
fix(npm): support non-all lowercase package names (#16669)
Supports package names that aren't all lowercase.

This stores the package with a leading underscore (since that's not
allowed in npm's registry and no package exists with a leading
underscore) then base32 encoded (A-Z0-9) so it can be lowercased and
avoid collisions.

Global cache dir:

```
$DENO_DIR/npm/registry.npmjs.org/_{base32_encode(package_name).to_lowercase()}/{version}
```

node_modules dir `.deno` folder:

```
node_modules/.deno/_{base32_encode(package_name).to_lowercase()}@{version}/node_modules/<package-name>
```

Within node_modules folder:

```
node_modules/<package-name>
```

So, direct childs of the node_modules folder can have collisions between
packages like `JSON` vs `json`, but this is already something npm itself
doesn't handle well. Plus, Deno doesn't actually ever resolve to the
`node_modules/<package-name>` folder, but just has that for
compatibility. Additionally, packages in the `.deno` dir could have
collissions if they have multiple dependencies that only differ in
casing or a dependency that has different casing, but if someone is
doing that then they're already going to have trouble with npm and they
are asking for trouble in general.
2022-11-16 18:44:31 +00:00
..
bench_tests.rs feat: Stabilize Deno.bench() and 'deno bench' subcommand (#16485) 2022-11-11 00:22:14 +01: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 test: don't use remote std for tests (#16631) 2022-11-15 17:21:25 +01: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 fix(npm): support non-all lowercase package names (#16669) 2022-11-16 18:44:31 +00: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 test: don't use lock file in JSX tests (#16639) 2022-11-15 17:20:40 +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 fix(ext/flash): revert #16383 (graceful server startup/shutdown) (#16610) 2022-11-13 17:35:28 +09: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