1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 00:59:24 -05:00
denoland-deno/tests/specs/npm
Nathan Whitaker 13c53d9727
fix(installl): make bin entries executable even if not put in node_modules/.bin (#25873)
Fixes https://github.com/denoland/deno/issues/25862.

npm only makes bin entries executable if they get linked into `.bin`, as
we did before this PR. So this PR actually deviates from npm, because
it's the only reasonable way to fix this that I can think of.

---

The reason this was broken in moment is the following:

Moment has dependencies on two typescript versions: 1.8 and 3.1

If you have two packages with conflicting bin entries (i.e. two
typescript versions which both have a bin entry `tsc`), in npm it is
non-deterministic and undefined which one will end up in `.bin`.

npm, due to implementation differences, chooses to put typescript 1.8
into the `.bin` directory, and so `node_modules/typescript/bin/tsc` ends
up getting marked executable. We, however, choose typescript 3.2, and so
we end up making `node_modules/typescript3/bin/tsc` executable.

As part of its tests, moment executes `node_modules/typescript/bin/tsc`.
Because we didn't make it executable, this fails.

Since the conflict resolution is undefined in npm, instead of trying to
match it, I think it makes more sense to just make bin entries
executable even if they aren't chosen in the case of a conflict.
2024-09-26 09:36:25 -07:00
..
adding_npm_dep_in_dynamic_import refactor: remove DENO_FUTURE (#25314) 2024-08-30 21:58:24 +00:00
bin_entries_prefer_closer fix(installl): make bin entries executable even if not put in node_modules/.bin (#25873) 2024-09-26 09:36:25 -07:00
builtin_module_module feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
byonm chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
cached_only feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
check_all feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
check_local feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
check_package_file_dts_dmts_dcts feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
check_pkg_json_import chore: fix flaky net_listen_allow_localhost_4555 (#23726) 2024-05-07 17:21:56 +00:00
check_prefers_non_types_node_pkg chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
check_types_in_types_pkg chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
child_process_fork_test feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
cjs_import_dual fix(check): CJS types importing dual ESM/CJS package should prefer CJS types (#24492) 2024-07-10 14:46:25 -04:00
cjs_internal_types_default_export chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
cjs_invalid_name_exports feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
cjs_local_global_decls feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
cjs_module_export_assignment feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
cjs_module_export_assignment_number feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
cjs_pkg_imports feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
cjs_reexport_collision feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
cjs_require_esm feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
cjs_require_esm_mjs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
cjs_sub_path feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
cjs_this_in_exports feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
cjs_with_deps feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
compare_globals feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
conditional_exports chore: fix flaky net_listen_allow_localhost_4555 (#23726) 2024-05-07 17:21:56 +00:00
conditional_exports_node_modules_dir refactor: remove DENO_FUTURE (#25314) 2024-08-30 21:58:24 +00:00
create_require feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
deno_cache feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
deno_run_bin_cjs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
deno_run_bin_cjs_no_bin_entrypoint feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
deno_run_bin_esm feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
deno_run_bin_esm_no_bin_entrypoint feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
deno_run_bin_no_ext feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
deno_run_bin_special_chars feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
deno_run_cowsay feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
deno_run_cowsay_explicit feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
deno_run_cowsay_with_node_modules_dir feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
deno_run_cowthink feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
deno_run_no_bin_entrypoint feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
deno_run_no_bin_entrypoint_non_existent_subpath feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
deno_run_non_existent feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
different_nested_dep_node_modules_dir_false feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
different_nested_dep_node_modules_dir_true feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
directory_import_folder_index_js feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
directory_import_folder_no_index feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
dual_cjs_esm feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
dynamic_import_deno_ts_from_npm feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
dynamic_import_invalid_package_name feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
dynamic_import_json feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
dynamic_import_reload_same_package feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
dynamic_npm_resolution_failure fix(npm): better error handling for remote npm deps (#25670) 2024-09-16 21:23:40 +00:00
env_var_re_export_dev feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
env_var_re_export_prod feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
error_version_after_subpath feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
es_module BREAKING: remove deno bundle (#25339) 2024-09-02 17:27:37 +02:00
esm_import_cjs_default fix(node): better detection for when to surface node resolution errors (#24653) 2024-07-24 00:22:24 +00:00
exec_file_inside_npm_package chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
future_auto_install_no_package_json chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
future_node_modules_dir_setting chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
import_json feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
import_map feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
imports_package_json feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
imports_package_json_import_not_defined feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
imports_package_json_sub_path_import_not_defined feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
info_chalk_display feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
info_chalk_display_node_modules_dir feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
info_chalk_json feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
info_chalk_json_node_modules_dir feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
info_cli_chalk_display feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
info_cli_chalk_json feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
info_peer_deps feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
info_peer_deps_json feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
invalid_package_name feat: improve lockfile v4 to store normalized version constraints and be more terse (#25247) 2024-08-28 14:17:47 -04:00
lifecycle_scripts fix(cli): Warn on not-run lifecycle scripts with global cache (#25786) 2024-09-24 19:23:57 +00:00
local_dir_no_duplicate_resolution refactor: remove DENO_FUTURE (#25314) 2024-08-30 21:58:24 +00:00
local_dir_resolves_symlinks refactor(tests): migrate npm itests to specs (#25764) 2024-09-20 22:38:32 +02:00
local_dir_resolves_symlinks_auto refactor(tests): migrate npm itests to specs (#25764) 2024-09-20 22:38:32 +02:00
lock_file_integrity_failure fix: adjust suggestion for lockfile regeneration (#25107) 2024-08-20 20:13:17 +02:00
lossy_utf8_module fix(ext/node): lossy UTF-8 read node_modules files (#24140) 2024-06-08 18:36:13 +02:00
lossy_utf8_package_json fix(ext/node): lossy UTF-8 read node_modules files (#24140) 2024-06-08 18:36:13 +02:00
lossy_utf8_script fix(ext/node): lossy UTF-8 read node_modules files (#24140) 2024-06-08 18:36:13 +02:00
lossy_utf8_script_from_cjs refactor: remove DENO_FUTURE (#25314) 2024-08-30 21:58:24 +00:00
mixed_case_package_name_global_dir feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
mixed_case_package_name_local_dir feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
no_types_cjs fix(node): better detection for when to surface node resolution errors (#24653) 2024-07-24 00:22:24 +00:00
no_types_in_conditional_exports fix(node): better detection for when to surface node resolution errors (#24653) 2024-07-24 00:22:24 +00:00
node_modules_deno_node_modules feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
node_modules_deno_node_modules_local feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
node_modules_dir_require_added_node_modules_folder feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
node_modules_dir_require_main_entry feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
node_modules_dir_with_deps feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
node_modules_dir_yargs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
node_modules_import refactor(tests): migrate npm itests to specs (#25764) 2024-09-20 22:38:32 +02:00
node_modules_import_auto refactor(tests): migrate npm itests to specs (#25764) 2024-09-20 22:38:32 +02:00
non_existent_dep feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
non_existent_dep_version feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
nonexistent_file feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
nonexistent_file_node_modules_dir feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
npm_pkg_depend_dep_same_name chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
npmrc chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
npmrc_bad_registry_config chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
npmrc_bad_token chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
npmrc_basic_auth chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
npmrc_deno_json chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
npmrc_homedir chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
npmrc_not_next_to_package_json fix(flags): require global flag for permission flags in install subcommand (#25391) 2024-09-03 12:40:50 -07:00
npmrc_password_no_username chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
npmrc_tarball_other_server refactor: remove DENO_FUTURE (#25314) 2024-08-30 21:58:24 +00:00
npmrc_username_no_password chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
npmrc_username_password chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
permissions_outside_package feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
remote_npm_specifier feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
require_esm feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
require_json feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
require_resolve_bad_paths_global_cache chore: fix flaky net_listen_allow_localhost_4555 (#23726) 2024-05-07 17:21:56 +00:00
require_type_commonjs fix: cjs resolution cases (#25739) 2024-09-19 21:10:34 -07:00
reserved_word_exports feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
run_existing_npm_package_with_subpath feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
sub_paths feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
tarball_with_global_header feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
translate_cjs_to_esm feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
types_ambient_module feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
types_ambient_module_import_map feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
types_d_ext feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
types_entry_value_not_exists feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
types_exports_import_types feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
types_general fix(node): better detection for when to surface node resolution errors (#24653) 2024-07-24 00:22:24 +00:00
types_no_types_entry feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
typescript_file_in_package feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
unanalyzable_dynamic_import fix: support importing statically unanalyzable npm specifiers (#24107) 2024-06-05 15:18:06 -04:00
worker_shutdown_during_npm_import chore: add test for worker shutting down during npm import (#24109) 2024-06-10 13:46:28 +02:00
workers fix(ext/node): fix prismjs compatibiliy in Web Worker (#25062) 2024-08-17 11:16:43 +09:00
workspace_basic chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
workspace_conflicting_dep chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
workspace_dep_aliases chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
workspace_sub_deno_json refactor: remove DENO_FUTURE (#25314) 2024-08-30 21:58:24 +00:00
workspace_wildcards refactor: remove DENO_FUTURE (#25314) 2024-08-30 21:58:24 +00:00