Monorepo for Tangled tangled.org
1

Configure Feed

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

nix/treefmt: fix prettier plugin resolution

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