Merge pull request #1529 from NotAShelf/notashelf/push-xqtoxozouqkt
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate documentation builds-1 (push) Waiting to run
Treewide Checks / Validate documentation builds-2 (push) Waiting to run
Treewide Checks / Validate documentation builds-3 (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions

prettier-plugin-svelte: skip npm prune step; remove redundant build deps
This commit is contained in:
raf 2026-04-17 19:25:41 +03:00 committed by GitHub
commit a2708696b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,11 +17,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
dontNpmPrune = true;
# Fixes error: Cannot find module 'prettier'
postInstall = ''
pushd "$nodeModulesPath"
find -mindepth 1 -maxdepth 1 -type d -print0 | grep --null-data -Exv "\./(ulid|prettier)" | xargs -0 rm -rfv
popd
'';
})