This repository has no description
0

Configure Feed

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

nix/treefmt: fix prettier plugin resolution

author
dawn
date (Jul 27, 2026, 4:41 PM +0300) commit 704868cf parent feeece7b change-id rznrnknn
+16 -1
+16 -1
flake.nix
··· 269 269 }; 270 270 271 271 prettier = { 272 - command = pkgs.lib.getExe pkgs.prettier; 272 + command = pkgs.writeShellScript "prettier-wrapper" '' 273 + cd web 274 + args=() 275 + for arg in "$@"; do 276 + if [[ "$arg" == web/* ]]; then 277 + args+=("''${arg#web/}") 278 + else 279 + args+=("$arg") 280 + fi 281 + done 282 + exec ${pkgs.lib.getExe pkgs.prettier} "''${args[@]}" 283 + ''; 273 284 options = ["-w"]; 274 285 includes = [ 275 286 "web/**/*.cjs" ··· 287 298 "web/**/*.vue" 288 299 "web/**/*.yaml" 289 300 "web/**/*.yml" 301 + ]; 302 + excludes = [ 303 + "web/static/**" 304 + "web/src/lib/api/lexicons/**" 290 305 ]; 291 306 }; 292 307 };