Fix icons path: use root node_modules in mkYarnPackage layout

mkYarnPackage hoists most dependencies to the root node_modules/,
with deps/grafana-pyroscope/node_modules/ containing only package-
specific overrides. @grafana/ui lives at ../../node_modules/, not
the local node_modules/.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-03-26 14:55:40 -07:00
commit 10398c715c

View file

@ -32,7 +32,7 @@ let
# @grafana/ui icons. Pre-copy them to the output location and patch
# webpack to skip the CopyPlugin entry for icons.
mkdir -p public/build/grafana/build/img
cp -rL node_modules/@grafana/ui/dist/public/img/icons \
cp -rL ../../node_modules/@grafana/ui/dist/public/img/icons \
public/build/grafana/build/img/
# Remove the CopyPlugin icons entry from webpack config so it doesn't