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 53
53
run : |
54
54
npm ci
55
55
- 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
70
57
eslint :
71
58
runs-on : ubuntu-latest
72
59
steps :
83
70
run : |
84
71
npm ci
85
72
- run : |
86
- npm run lint
73
+ npm run check: lint
Original file line number Diff line number Diff line change 12
12
"build" : " npm run build:clean && npm run build:compile && npm run build:addshebang && npm run build:chmod" ,
13
13
"inspect" : " npm run build && npx @modelcontextprotocol/inspector -- dist/index.js" ,
14
14
"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 ."
17
19
},
18
20
"license" : " Apache-2.0" ,
19
21
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments