Skip to content

Commit

Permalink
Run formatting in check mode in CI environment
Browse files Browse the repository at this point in the history
  • Loading branch information
i-like-robots committed Dec 9, 2024
1 parent 13af457 commit b9acf59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"types": "./lib/snappy-snaps.d.ts",
"scripts": {
"lint": "eslint",
"format": "prettier --write '**/*.{ts,tsx,js,cjs,mjs,jsx,json,yml}'",
"format": "prettier $([ $CI ] && echo '--check' || echo '--write') '**/*.{js,jsx,json,yml}'",
"spec": "node --test --test-reporter spec",
"verify": "npm run lint && npm run format",
"test": "npm run verify && npm run spec",
Expand Down

0 comments on commit b9acf59

Please sign in to comment.