diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ad5f5c3..f41e7b2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,9 +10,12 @@ Contributions are welcome, but I have little time to invest in this project. I a # install dependencies pnpm install -# type checking and style fixes +# type checking and lint/format check (CI runs this) pnpm lint +# everything lint does, plus auto-format and auto-fix lint issues +pnpm fix + # run tests pnpm test ``` diff --git a/package.json b/package.json index 82119a8..aebeeb2 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,8 @@ }, "scripts": { "build": "rm -rf dist && tsc --project tsconfig.build.esm.json && tsc --project tsconfig.build.cjs.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json", - "lint": "oxfmt && oxlint --fix && knip && tsc --noEmit", + "fix": "oxfmt && oxlint --fix && knip && tsc --noEmit", + "lint": "oxfmt --check && oxlint && knip && tsc --noEmit", "test": "node --test-concurrency=1 --test test/*.test.ts", "prepack": "pnpm build", "preuninstall": "node dist/esm/certs-cli.js -u",