File tree Expand file tree Collapse file tree 2 files changed +6
-17
lines changed
Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Original file line number Diff line number Diff line change 5353 run : |
5454 npm ci
5555 - run : |
56- npm run reformat
57- - name : Check for uncommitted files
58- run : |
59- export FILES=
60- FILES=$(git ls-files -o -m --directory --exclude-standard --no-empty-directory)
61- export LINES=
62- LINES=$(echo "$FILES" | awk 'NF' | wc -l)
63- if [ "$LINES" -ne 0 ]; then
64- echo "Detected files that need to be committed:"
65- echo "${FILES}"
66- echo ""
67- echo "Try running: npm run reformat"
68- exit 1
69- fi
56+ npm run check:format
7057 eslint :
7158 runs-on : ubuntu-latest
7259 steps :
8370 run : |
8471 npm ci
8572 - run : |
86- npm run lint
73+ npm run check: lint
Original file line number Diff line number Diff line change 1212 "build" : " npm run build:clean && npm run build:compile && npm run build:addshebang && npm run build:chmod" ,
1313 "inspect" : " npm run build && npx @modelcontextprotocol/inspector -- dist/index.js" ,
1414 "prettier" : " prettier" ,
15- "lint" : " npx eslint ." ,
16- "reformat" : " npm run prettier -- --write ."
15+ "check" : " npm run check:lint && npm run check:format" ,
16+ "check:lint" : " npx eslint ." ,
17+ "check:format" : " npx prettier -c ." ,
18+ "reformat" : " npx prettier -- --write ."
1719 },
1820 "license" : " Apache-2.0" ,
1921 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments