Skip to content

Commit

Permalink
use pretty data for xml
Browse files Browse the repository at this point in the history
  • Loading branch information
wandmagic committed Jan 16, 2025
1 parent f6bea01 commit 4a4fd68
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@types/jsdom": "^21.1.7",
"@types/xml2js": "^0.4.14",
"cross-env": "^7.0.3",
"pretty-data": "^0.40.0",
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion src/content/module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ format-xml:
@echo "Formatting XML files..."
@for file in $(XML_FILES); do \
echo "Formatting $$file..."; \
xmllint --format --output "$$file" "$$file"; \
npx pretty-data-xml "$$file" > "$$file.tmp" && mv "$$file.tmp" "$$file"; \
done

.PHONY: format-json
Expand Down

0 comments on commit 4a4fd68

Please sign in to comment.