mirror of
https://github.com/labring/sealos.git
synced 2026-08-30 17:58:09 +08:00
10 lines
231 B
Bash
Executable File
10 lines
231 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Get script directory and frontend directory
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
FRONTEND_DIR="$(dirname "$SCRIPT_DIR")"
|
|
|
|
for file in "$@"; do
|
|
(cd "$FRONTEND_DIR" && pnpm exec prettier --write "$file")
|
|
done
|