From bf166be9fb6a2c5846d0fa0d3a1c3e68fdee11ff Mon Sep 17 00:00:00 2001 From: Paul T Date: Wed, 3 Apr 2024 14:38:41 -0400 Subject: [PATCH] feat: add script to format typst files --- scripts/format_typst.ps1 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 scripts/format_typst.ps1 diff --git a/scripts/format_typst.ps1 b/scripts/format_typst.ps1 new file mode 100644 index 0000000..6976b59 --- /dev/null +++ b/scripts/format_typst.ps1 @@ -0,0 +1,5 @@ +# requires typstyle to be installed +# cargo install typstyle + +# get all *.typ files and format them +Get-ChildItem -Path $PSScriptRoot/../*.typ -Recurse | ForEach-Object { typstyle -i $_.FullName } \ No newline at end of file