From bd5c82a12e14e4ae26cb06aeed01d18de71f1ba5 Mon Sep 17 00:00:00 2001 From: Krzysztof Nazarewski Date: Thu, 17 Oct 2024 09:42:47 +0200 Subject: [PATCH] fix: prettier-plugin-toml for new format --- src/data/configs/treefmt.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/configs/treefmt.nix b/src/data/configs/treefmt.nix index 839f0131..20edc0bb 100644 --- a/src/data/configs/treefmt.nix +++ b/src/data/configs/treefmt.nix @@ -17,7 +17,7 @@ in { }; prettier = { command = lib.getExe nixpkgs.nodePackages.prettier; - options = ["--plugin" "${nixpkgs.nodePackages.prettier-plugin-toml}/lib/node_modules/prettier-plugin-toml/lib/api.js" "--write"]; + options = ["--plugin" "${nixpkgs.nodePackages.prettier-plugin-toml}/lib/node_modules/prettier-plugin-toml/lib/index.cjs" "--write"]; includes = [ "*.css" "*.html"