0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-04 09:57:11 -05:00
deno/tests/specs/npm
David Sherret 8cd9fa6aae
fix(node): correct resolution of dynamic import of esm from cjs (#27071)
Ensures a dynamic import in a CJS file will consider the referrer as an import for node resolution.

Also adds fixes (adds) support for `"resolution-mode"` in TypeScript.
2024-11-28 15:47:26 +01:00
..
adding_npm_dep_in_dynamic_import
bin_entries_prefer_closer
bin_entry_created_by_lifecycle
builtin_module_module
byonm
byonm_run_npm
cached_only
check_all
check_local
check_package_file_dts_dmts_dcts
check_pkg_json_import
check_prefers_non_types_node_pkg
check_types_in_types_pkg
child_process_fork_test
cjs_import_dual
cjs_internal_types_default_export
cjs_invalid_name_exports
cjs_local_global_decls
cjs_module_export_assignment
cjs_module_export_assignment_number
cjs_pkg_imports
cjs_reexport_collision
cjs_require_esm
cjs_require_esm_mjs
cjs_sub_path
cjs_this_in_exports
cjs_with_deps
compare_globals
conditional_exports
conditional_exports_node_modules_dir
create_require
deno_cache
deno_run_bin_cjs
deno_run_bin_cjs_no_bin_entrypoint
deno_run_bin_esm
deno_run_bin_esm_no_bin_entrypoint
deno_run_bin_no_ext
deno_run_bin_special_chars
deno_run_cowsay
deno_run_cowsay_explicit
deno_run_cowsay_with_node_modules_dir
deno_run_cowthink
deno_run_no_bin_entrypoint
deno_run_no_bin_entrypoint_non_existent_subpath
deno_run_non_existent
different_nested_dep_node_modules_dir_false
different_nested_dep_node_modules_dir_true
directory_import_folder_index_js
directory_import_folder_no_index
dual_cjs_esm
dynamic_import_deno_ts_from_npm
dynamic_import_invalid_package_name
dynamic_import_json
dynamic_import_reload_same_package
dynamic_npm_resolution_failure
env_var_re_export_dev
env_var_re_export_prod
error_version_after_subpath
es_module
esm_import_cjs_default
exec_file_inside_npm_package
future_auto_install_no_package_json
future_node_modules_dir_setting
import_json
import_map
imports_package_json
imports_package_json_import_not_defined
imports_package_json_sub_path_import_not_defined
info_chalk_display
info_chalk_display_node_modules_dir
info_chalk_json
info_chalk_json_node_modules_dir
info_cli_chalk_display
info_cli_chalk_json
info_peer_deps
info_peer_deps_json
invalid_package_name
lifecycle_scripts
local_dir_no_duplicate_resolution
local_dir_resolves_symlinks
local_dir_resolves_symlinks_auto
lock_file_integrity_failure
lossy_utf8_module
lossy_utf8_package_json
lossy_utf8_script
lossy_utf8_script_from_cjs
mixed_case_package_name_global_dir
mixed_case_package_name_local_dir
no_types_cjs
no_types_in_conditional_exports
node_modules_deno_node_modules
node_modules_deno_node_modules_local
node_modules_dir_require_added_node_modules_folder
node_modules_dir_require_main_entry
node_modules_dir_with_deps
node_modules_dir_yargs
node_modules_import
node_modules_import_auto
non_existent_dep
non_existent_dep_version
nonexistent_file
nonexistent_file_node_modules_dir
npm_pkg_depend_dep_same_name
npmrc
npmrc_bad_registry_config
npmrc_bad_token
npmrc_basic_auth
npmrc_deno_json
npmrc_homedir
npmrc_install_arg
npmrc_no_auth
npmrc_no_auth_install
npmrc_not_next_to_package_json
npmrc_password_no_username
npmrc_tarball_other_server
npmrc_username_no_password
npmrc_username_password
permissions_outside_package
pkg_index_ts_and_js
remote_npm_specifier
require_esm
require_json
require_resolve_bad_paths_global_cache
require_type_commonjs
reserved_word_exports
run_existing_npm_package_with_subpath
specifier_two_slashes
sub_paths
tarball_with_global_header
translate_cjs_to_esm
types_ambient_module
types_ambient_module_import_map
types_d_ext
types_entry_value_not_exists
types_exports_import_types
types_general
types_no_types_entry
typescript_file_in_package
typo_in_npm
unanalyzable_dynamic_import
user_agent_env_var
worker_shutdown_during_npm_import
workers
workspace_basic
workspace_conflicting_dep
workspace_dep_aliases
workspace_sub_deno_json
workspace_wildcards