1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-31 04:27:45 +00:00

feat: add default config for web version

This commit is contained in:
Kevin Amado 2025-04-10 16:45:08 -06:00
parent 3e2a855066
commit cb66042a0c
2 changed files with 1 additions and 2 deletions

View file

@ -36,7 +36,6 @@ steps:
if: build.branch != "main" if: build.branch != "main"
artifacts: artifacts:
- formatting-before-vs-after.patch.txt - formatting-before-vs-after.patch.txt
- formatting-after.patch.txt
command: command:
- echo +++ Formatting - demo - echo +++ Formatting - demo
- nix run . -- flake.nix - nix run . -- flake.nix

View file

@ -10,5 +10,5 @@ pub fn main() -> Result<(), JsValue> {
#[wasm_bindgen] #[wasm_bindgen]
pub fn format(before: String, path: String) -> String { pub fn format(before: String, path: String) -> String {
alejandra::format::in_memory(path, before).1 alejandra::format::in_memory(path, before, Default::default()).1
} }