pinchflat: correct esbuild symlink name on Darwin (#534989)

This commit is contained in:
Matt Sturgeon
2026-06-25 19:57:08 +00:00
committed by GitHub
+6 -3
View File
@@ -58,10 +58,13 @@ beamPackages.mixRelease rec {
patchShebangs ~/assets/node_modules
# phoenixframework expects platform-specific tailwind/esbuild binaries in a specific location:
# https://github.com/phoenixframework/tailwind/blob/194ab0f979782e4ccf2fe796042bf8e20967df93/lib/tailwind.ex#L243-L251
targets="linux-x64 linux-arm64 macos-x64 macos-arm64"
for target in $targets; do
# tailwind: https://github.com/phoenixframework/tailwind/blob/194ab0f979782e4ccf2fe796042bf8e20967df93/lib/tailwind.ex#L243-L251
for target in linux-x64 linux-arm64 macos-x64 macos-arm64; do
ln -s "${tailwindcss}/bin/tailwindcss" "_build/tailwind-$target"
done
# esbuild: https://github.com/phoenixframework/esbuild/blob/v0.10.0/lib/esbuild.ex#L270-L300
for target in linux-x64 linux-arm64 darwin-x64 darwin-arm64; do
ln -s "${esbuild}/bin/esbuild" "_build/esbuild-$target"
done