0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-12 15:17:56 -04:00
deno/cli/tests/testdata/npm
Bartek Iwańczuk e7d7da85df
fix(npm): fix CJS resolution with local node_modules dir (#16547)
This commit fixes CJS resolution when there's a local "node_modules/"
directory.

Before this commit relative imports from CJS files where resolved
relative to
root directory of the package instead of relative to referrer file.
2022-11-06 00:58:21 +01:00
..
builtin_module_module
cached_only
cached_only_after_first_run
check_errors feat(unstable/npm): initial type checking of npm specifiers (#16332) 2022-10-21 15:20:18 +00:00
child_process_fork_test
cjs_local_global_decls
cjs_module_export_assignment chore(npm): add explicit tests for module.exports assignment with type checking (#16435) 2022-10-27 17:54:46 -04:00
cjs_module_export_assignment_number chore(npm): add explicit tests for module.exports assignment with type checking (#16435) 2022-10-27 17:54:46 -04:00
cjs_reexport_collision fix(npm): align Deno importing Node cjs with Node esm importing cjs (#15879) 2022-09-12 14:28:51 -04:00
cjs_sub_path
cjs_this_in_exports
cjs_with_deps feat(unstable/npm): deno info --json support for npm specifiers (#16472) 2022-10-31 10:25:46 -04:00
cjs_yargs fix(npm): fix CJS resolution with local node_modules dir (#16547) 2022-11-06 00:58:21 +01:00
compare_globals feat(unstable/npm): initial type checking of npm specifiers (#16332) 2022-10-21 15:20:18 +00:00
conditional_exports
dual_cjs_esm feat(unstable/npm): support providing npm dist-tag in npm package specifier (#16293) 2022-10-17 09:16:19 -04:00
dynamic_import
env_var_re_export
error_version_after_subpath
esm chore: fix flaky esm_module_deno_test test (#16419) 2022-10-25 13:18:54 -04:00
esm_import_cjs_default feat(unstable/npm): initial type checking of npm specifiers (#16332) 2022-10-21 15:20:18 +00:00
import_map
info feat(unstable/npm): deno info --json support for npm specifiers (#16472) 2022-10-31 10:25:46 -04:00
invalid_package_name
lock_file fix(lock): autodiscovery of lockfile (#16498) 2022-11-02 16:32:30 +01:00
no_npm_after_first_run
no_unstable
nonexistent_file
registry fix(npm): add console global for node environment (#16519) 2022-11-02 19:08:09 -04:00
reload
require_added_nm_folder
require_json
sub_paths
tarball_with_global_header
translate_cjs_to_esm
types_ambient_module feat(unstable/npm): initial type checking of npm specifiers (#16332) 2022-10-21 15:20:18 +00:00
deno_cache.out
deno_run_cjs.out
deno_run_cowsay.out
deno_run_cowthink.out
deno_run_esm.out
deno_run_no_ext.out
deno_run_non_existent.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 test_util) at http://localhost:4545/npm/registry/ via the ./registry folder.

Updating with real npm packages

  1. Set the DENO_TEST_UTIL_UPDATE_NPM=1 environment variable
  2. Run the test and it should download the packages.

Using a custom npm package

  1. Add the custom package to ./registry/@denotest
  2. Reference npm:@denotest/<your-package-name> in the tests.