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 31, 2026, 10:51 PM +0300) commit 93678b50 parent 4aca7ae4 change-id rznrnknn
+16 -1
+16 -1
flake.nix
··· 281 281 }; 282 282 283 283 prettier = { 284 - command = pkgs.lib.getExe pkgs.prettier; 284 + command = pkgs.writeShellScript "prettier-wrapper" '' 285 + cd web 286 + args=() 287 + for arg in "$@"; do 288 + if [[ "$arg" == web/* ]]; then 289 + args+=("''${arg#web/}") 290 + else 291 + args+=("$arg") 292 + fi 293 + done 294 + exec ${pkgs.lib.getExe pkgs.prettier} "''${args[@]}" 295 + ''; 285 296 options = ["-w"]; 286 297 includes = [ 287 298 "web/**/*.cjs" ··· 299 310 "web/**/*.vue" 300 311 "web/**/*.yaml" 301 312 "web/**/*.yml" 313 + ]; 314 + excludes = [ 315 + "web/static/**" 316 + "web/src/lib/api/lexicons/**" 302 317 ]; 303 318 }; 304 319 };