Skip to content

Commit

Permalink
add prettier script
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Nov 30, 2023
1 parent a64743c commit 160cf9c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
"// Remove all generated files": "",
"clean": "git clean -Xdf",
"reset": "pnpm run clean && pnpm install && pnpm run build",
"========= Formatting": "",
"prettier": "git ls-files | egrep '\\.(json|js|jsx|css|ts|tsx|vue|mjs|cjs)$' | grep --invert-match package.json | xargs pnpm exec prettier --write",
"========= Only allow pnpm; forbid yarn & npm": "",
"preinstall": "npx only-allow pnpm"
},
Expand All @@ -43,6 +45,7 @@
"@brillout/dev-my-dep": "^0.1.5",
"@brillout/test-e2e": "^0.5.25",
"@brillout/test-types": "^0.1.10",
"prettier": "^3.1.0",
"vitest": "^0.34.1"
},
"pnpm": {
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 160cf9c

Please sign in to comment.