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 21, 2026, 2:39 AM +0300) commit a33e8007 parent d0620060 change-id pqmnvlxt
+16 -1
+16 -1
flake.nix
··· 264 264 }; 265 265 266 266 prettier = { 267 - command = pkgs.lib.getExe pkgs.prettier; 267 + command = pkgs.writeShellScript "prettier-wrapper" '' 268 + cd web 269 + args=() 270 + for arg in "$@"; do 271 + if [[ "$arg" == web/* ]]; then 272 + args+=("''${arg#web/}") 273 + else 274 + args+=("$arg") 275 + fi 276 + done 277 + exec ${pkgs.lib.getExe pkgs.prettier} "''${args[@]}" 278 + ''; 268 279 options = ["-w"]; 269 280 includes = [ 270 281 "web/**/*.cjs" ··· 282 293 "web/**/*.vue" 283 294 "web/**/*.yaml" 284 295 "web/**/*.yml" 296 + ]; 297 + excludes = [ 298 + "web/static/**" 299 + "web/src/lib/api/lexicons/**" 285 300 ]; 286 301 }; 287 302 };