From fcfe33b0c76add386d6dcb6094e24d8dacbd9f83 Mon Sep 17 00:00:00 2001 From: dalaoshu Date: Tue, 6 Aug 2024 07:26:49 +0800 Subject: [PATCH 1/2] feat: add windows shell support for just (#1473) --- justfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/justfile b/justfile index c2db377ff..933012699 100644 --- a/justfile +++ b/justfile @@ -1,4 +1,6 @@ #!/usr/bin/env -S just --justfile +set windows-shell := ["powershell"] +set shell := ["bash", "-cu"] _default: just --list -u From 2a9d2b5333af7bb67e4134f2cade6b1f19a866b5 Mon Sep 17 00:00:00 2001 From: Peach Date: Tue, 6 Aug 2024 07:27:12 +0800 Subject: [PATCH 2/2] refactor: avoid underscore prefix for chunk file name (#1471) --- crates/mako/src/generate/chunk.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/mako/src/generate/chunk.rs b/crates/mako/src/generate/chunk.rs index c2e14262f..fc3f89f35 100644 --- a/crates/mako/src/generate/chunk.rs +++ b/crates/mako/src/generate/chunk.rs @@ -74,8 +74,8 @@ impl Chunk { .components() .filter(|c| !matches!(c, Component::RootDir | Component::CurDir)) .map(|c| match c { - Component::ParentDir => "_pd_".to_string(), - Component::Prefix(_) => "_ps_".to_string(), + Component::ParentDir => "pd_".to_string(), + Component::Prefix(_) => "ps_".to_string(), Component::RootDir => "".to_string(), Component::CurDir => "".to_string(), Component::Normal(seg) => {