1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/tests/specs/npm
Nathan Whitaker c371b2a492
fix(install): re-setup bin entries after running lifecycle scripts (#26752)
Fixes #26677

Some packages (like supabase) declare bin entries that don't exist until
lifecycle scripts are run. For instance, the lifecycle script downloads
a binary file which serves as a bin entrypoint.

Unfortunately you can't just defer setting up the bin entries until
after lifecycle scripts have run, because the scripts may rely on them.

I looked into this, and PNPM just re-links bin entries after running
lifecycle scripts. I think that's about the best we can do as well.

Note that we'll only re-setup bin entries for packages whose lifecycle
scripts we run. This should limit the performance cost, as typically a
given project will not have many lifecycle scripts (and of those, many
of them probably don't have bin entries to set up).
2024-11-12 09:23:39 -08:00
..
adding_npm_dep_in_dynamic_import fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
bin_entries_prefer_closer fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
bin_entry_created_by_lifecycle fix(install): re-setup bin entries after running lifecycle scripts (#26752) 2024-11-12 09:23:39 -08:00
builtin_module_module chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
byonm chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
byonm_run_npm feat(byonm): support deno run npm:<package> when package is not in package.json (#25981) 2024-10-02 21:17:39 +01:00
cached_only chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
check_all fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
check_local fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
check_package_file_dts_dmts_dcts fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
check_pkg_json_import fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02: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 chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
cjs_import_dual fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02: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 chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
cjs_local_global_decls fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
cjs_module_export_assignment chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
cjs_module_export_assignment_number chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
cjs_pkg_imports fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
cjs_reexport_collision chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
cjs_require_esm chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
cjs_require_esm_mjs chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
cjs_sub_path chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
cjs_this_in_exports chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
cjs_with_deps chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
compare_globals fix(check): expose more globals from @types/node (#26603) 2024-10-28 17:43:41 -04:00
conditional_exports fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
conditional_exports_node_modules_dir fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
create_require chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_cache chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_run_bin_cjs chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_run_bin_cjs_no_bin_entrypoint chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_run_bin_esm chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_run_bin_esm_no_bin_entrypoint chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_run_bin_no_ext chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_run_bin_special_chars chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_run_cowsay chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_run_cowsay_explicit chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_run_cowsay_with_node_modules_dir chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_run_cowthink chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_run_no_bin_entrypoint chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_run_no_bin_entrypoint_non_existent_subpath chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_run_non_existent chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
different_nested_dep_node_modules_dir_false chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
different_nested_dep_node_modules_dir_true chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
directory_import_folder_index_js fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
directory_import_folder_no_index fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
dual_cjs_esm chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
dynamic_import_deno_ts_from_npm chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
dynamic_import_invalid_package_name chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
dynamic_import_json chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
dynamic_import_reload_same_package chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
dynamic_npm_resolution_failure fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
env_var_re_export_dev chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
env_var_re_export_prod chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
error_version_after_subpath chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
es_module BREAKING: remove deno bundle (#25339) 2024-09-02 17:27:37 +02:00
esm_import_cjs_default fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02: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 chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
import_map fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
imports_package_json fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
imports_package_json_import_not_defined fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
imports_package_json_sub_path_import_not_defined fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
info_chalk_display chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
info_chalk_display_node_modules_dir chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
info_chalk_json feat(cli): improve deno info output for npm packages (#25906) 2024-10-14 14:29:50 +02:00
info_chalk_json_node_modules_dir feat(cli): improve deno info output for npm packages (#25906) 2024-10-14 14:29:50 +02:00
info_cli_chalk_display chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
info_cli_chalk_json feat(cli): improve deno info output for npm packages (#25906) 2024-10-14 14:29:50 +02:00
info_peer_deps fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
info_peer_deps_json fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02: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(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02: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(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
lossy_utf8_package_json fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
lossy_utf8_script fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
lossy_utf8_script_from_cjs fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
mixed_case_package_name_global_dir fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
mixed_case_package_name_local_dir fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
no_types_cjs fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
no_types_in_conditional_exports fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
node_modules_deno_node_modules chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
node_modules_deno_node_modules_local chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
node_modules_dir_require_added_node_modules_folder chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
node_modules_dir_require_main_entry chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
node_modules_dir_with_deps chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
node_modules_dir_yargs chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
node_modules_import fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
node_modules_import_auto fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
non_existent_dep fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
non_existent_dep_version fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
nonexistent_file chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
nonexistent_file_node_modules_dir chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01: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 fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
npmrc_bad_registry_config fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
npmrc_bad_token fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
npmrc_basic_auth fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
npmrc_deno_json fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
npmrc_homedir fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
npmrc_install_arg fix: .npmrc settings not being passed to install/add command (#26473) 2024-10-24 20:03:56 +02:00
npmrc_no_auth fix: .npmrc settings not being passed to install/add command (#26473) 2024-10-24 20:03:56 +02:00
npmrc_no_auth_install fix: .npmrc settings not being passed to install/add command (#26473) 2024-10-24 20:03:56 +02:00
npmrc_not_next_to_package_json fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
npmrc_password_no_username fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
npmrc_tarball_other_server fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
npmrc_username_no_password fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
npmrc_username_password fix(npm): match npm bearer token generation (#26544) 2024-10-28 12:08:51 +01:00
permissions_outside_package fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
remote_npm_specifier chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
require_esm feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
require_json chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
require_resolve_bad_paths_global_cache fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
require_type_commonjs fix: improved support for cjs and cts modules (#26558) 2024-11-01 12:27:00 -04:00
reserved_word_exports fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
run_existing_npm_package_with_subpath fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
sub_paths chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
tarball_with_global_header chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
translate_cjs_to_esm chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
types_ambient_module chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
types_ambient_module_import_map chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
types_d_ext fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
types_entry_value_not_exists fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
types_exports_import_types fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
types_general fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
types_no_types_entry fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
typescript_file_in_package fix: improved support for cjs and cts modules (#26558) 2024-11-01 12:27:00 -04:00
unanalyzable_dynamic_import fix: support importing statically unanalyzable npm specifiers (#24107) 2024-06-05 15:18:06 -04:00
user_agent_env_var fix(cli): set npm_config_user_agent when running npm packages or tasks (#26639) 2024-10-31 22:19:19 -07: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 fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02: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