package/prettier-svelte: fix missing deps

This commit is contained in:
Ching Pei Yang 2026-04-13 21:12:27 +02:00 committed by Ching Pei Yang
commit bb3c2ae834

View file

@ -16,4 +16,12 @@ in
};
npmDepsHash = "sha256-XVyLW0XDCvZCZxu8g1fP7fRfeU3Hz81o5FCi/i4BKQw=";
# FIXME: this probably also copies over build dependencies.
# Look at how other prettier plugins in nixpkgs do things. I couldn't get it to work
# and am out of time so good luck :)
preInstall = ''
mkdir -p $out/lib
cp -r node_modules $out
'';
})