From c253d40d1daf47a671f7c864f9c82bc0724c9f32 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 25 Jan 2025 22:52:25 +1100 Subject: [PATCH] Use prettier's cache Approximately halves runtime on my system --- build/ninja_gen/src/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/ninja_gen/src/node.rs b/build/ninja_gen/src/node.rs index 8ba29ffb4..c59543ea7 100644 --- a/build/ninja_gen/src/node.rs +++ b/build/ninja_gen/src/node.rs @@ -214,7 +214,7 @@ pub struct Prettier { impl BuildAction for Prettier { fn command(&self) -> &str { - "$prettier $mode $pattern" + "$prettier --cache $mode $pattern" } fn files(&mut self, build: &mut impl build::FilesHandle) {