mirror of
https://github.com/denoland/deno.git
synced 2025-02-01 12:16:11 -05:00
4e655e543f
This commit changes "Deno.cwd()" (as well as "process.cwd()") to no longer require full "--allow-read" permission. This change was meant to be done in Deno 2.0.0, but somehow it slipped. Requiring full read permission just to read the CWD is a mistake, because CWD can already be obtained with no permission by throwing an error in JS and inspecting its stack. Fixes https://github.com/denoland/deno/issues/27110 --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> |
||
---|---|---|
.. | ||
binary_package | ||
cached_only | ||
cached_only_after_first_run | ||
cjs_with_deps | ||
different_nested_dep | ||
dual_cjs_esm | ||
dynamic_import | ||
dynamic_import_json | ||
exec_file | ||
no_npm_after_first_run | ||
peer_deps_with_copied_folders | ||
reload | ||
require_resolve_url | ||
run_existing_npm_package | ||
compile_npm_no_permissions.out | ||
deno_run_cjs.out | ||
deno_run_cowsay.out | ||
deno_run_cowthink.out | ||
deno_run_esm.out | ||
README.md |
npm test data
This folder contains test data for npm specifiers.
Registry
The registry is served by the test server (server in tests/util/server
) at
http://localhost:4260/ via the ./registry
folder.
Updating with real npm packages
- Set the
DENO_TEST_UTIL_UPDATE_NPM=1
environment variable - Run the test and it should download the packages.
Using a custom npm package
- Add the custom package to
./registry/@denotest
- Reference
npm:@denotest/<your-package-name>
in the tests.