lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

prettier-plugin-go-template: fix install script (#349332)

authored by

Peder Bergebakken Sundt and committed by
GitHub
550d0ed9 15a72234

+10 -1
+10 -1
pkgs/by-name/pr/prettier-plugin-go-template/package.nix
··· 6 6 7 7 buildNpmPackage rec { 8 8 pname = "prettier-plugin-go-template"; 9 - version = "0-unstable-2023-07-26"; 9 + version = "0.0.15-unstable-2023-07-26"; 10 10 11 11 src = fetchFromGitHub { 12 12 owner = "NiklasPor"; ··· 16 16 }; 17 17 18 18 npmDepsHash = "sha256-PpJnVZFRxpUHux2jIBDtyBS4qNo6IJY4kwTAq6stEVQ="; 19 + 20 + dontNpmPrune = true; 21 + 22 + # Fixes error: Cannot find module 'prettier' 23 + postInstall = '' 24 + pushd "$nodeModulesPath" 25 + find -mindepth 1 -maxdepth 1 -type d -print0 | grep --null-data -Exv "\./(ulid|prettier)" | xargs -0 rm -rfv 26 + popd 27 + ''; 19 28 20 29 meta = { 21 30 description = "Fixes prettier formatting for go templates";