summaryrefslogtreecommitdiff
path: root/tests/specs/npm/bin_entry_created_by_lifecycle/install_warn.out
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-11-12 09:23:39 -0800
committerGitHub <noreply@github.com>2024-11-12 09:23:39 -0800
commitc371b2a492c60f47ce6b96b4df129c5d01706e1b (patch)
treee61641ac48950014d2f3207cb5175c580f5243f3 /tests/specs/npm/bin_entry_created_by_lifecycle/install_warn.out
parent15b6baff33bb2405b174c5eaa919f9219421d513 (diff)
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).
Diffstat (limited to 'tests/specs/npm/bin_entry_created_by_lifecycle/install_warn.out')
-rw-r--r--tests/specs/npm/bin_entry_created_by_lifecycle/install_warn.out10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/specs/npm/bin_entry_created_by_lifecycle/install_warn.out b/tests/specs/npm/bin_entry_created_by_lifecycle/install_warn.out
new file mode 100644
index 000000000..864a3f6f5
--- /dev/null
+++ b/tests/specs/npm/bin_entry_created_by_lifecycle/install_warn.out
@@ -0,0 +1,10 @@
+Download http://localhost:4260/@denotest%2fbin-created-by-lifecycle
+Download http://localhost:4260/@denotest/bin-created-by-lifecycle/1.0.0.tgz
+Initialize @denotest/bin-created-by-lifecycle@1.0.0
+Warning Trying to set up 'testbin' bin for "[WILDCARD]bin-created-by-lifecycle", but the entry point "[WILDCARD]testbin.js" doesn't exist.
+Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
+┠─ npm:@denotest/bin-created-by-lifecycle@1.0.0
+┃
+┠─ This may cause the packages to not work correctly.
+┖─ To run lifecycle scripts, use the `--allow-scripts` flag with `deno install`:
+ deno install --allow-scripts=npm:@denotest/bin-created-by-lifecycle@1.0.0