chore(*.sql): use sql-formatter for sql formatting

This commit is contained in:
Cory Dransfeldt 2025-06-14 17:10:41 -07:00
parent 753f3433ce
commit a650f1d3e8
No known key found for this signature in database
63 changed files with 4432 additions and 2358 deletions

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "10.2.4",
"version": "10.3.4",
"description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module",
"engines": {
@ -13,7 +13,8 @@
"php": "export $(grep -v '^#' .env | xargs) && php -d error_reporting=E_ALL^E_DEPRECATED -S localhost:8080 -t dist",
"build": "eleventy",
"clean": "rimraf dist .cache",
"format": "npx prettier --write '**/*.{js,ts,json,css,md}' && composer format:php",
"format": "npx prettier --write '**/*.{js,ts,json,css,md}' && composer format:php && npm run format:sql",
"format:sql": "find queries -name '*.sql' -print0 | xargs -0 -n 1 sql-formatter --language postgresql --fix",
"update": "composer update && npm upgrade && npm --prefix cli upgrade && ncu && ncu --cwd cli",
"setup": "sh ./scripts/setup.sh",
"setup:deploy": "sh ./scripts/setup.sh --deploy",
@ -60,6 +61,7 @@
"postcss-import-ext-glob": "^2.1.1",
"prettier": "3.5.3",
"rimraf": "^6.0.1",
"sql-formatter": "15.6.4",
"terser": "^5.42.0",
"truncate-html": "^1.2.2"
}