Skip to content

Commit 0400e4d

Browse files
committed
Check format via make
1 parent edb0b13 commit 0400e4d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878

7979
- run: npm ci
8080
- name: Format check
81-
run: npm run fmt:check
81+
run: make checkformat
8282
- run: opam install dune cppo
8383
- run: npm run compile
8484
- run: npm run bundle

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ clean:
1717

1818
format:
1919
dune build @fmt --auto-promote
20+
npx prettier --write --experimental-cli .
2021

2122
checkformat:
2223
dune build @fmt
24+
prettier --check --experimental-cli .
2325

2426
.DEFAULT_GOAL := build
2527

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,7 @@
251251
"postinstall": "cd server && npm i && cd ../client && npm i && cd ../tools && npm i && cd ../tools/tests && npm i && cd ../../analysis/tests && npm i && cd ../reanalyze/examples/deadcode && npm i && cd ../termination && npm i",
252252
"bundle-server": "esbuild server/src/cli.ts --bundle --sourcemap --outfile=server/out/cli.js --format=cjs --platform=node --loader:.node=file --minify",
253253
"bundle-client": "esbuild client/src/extension.ts --bundle --external:vscode --sourcemap --outfile=client/out/extension.js --format=cjs --platform=node --loader:.node=file --minify",
254-
"bundle": "npm run bundle-server && npm run bundle-client",
255-
"fmt": "prettier --write --experimental-cli .",
256-
"fmt:check": "prettier --check --experimental-cli ."
254+
"bundle": "npm run bundle-server && npm run bundle-client"
257255
},
258256
"devDependencies": {
259257
"@types/node": "^14.14.41",

0 commit comments

Comments
 (0)