diff --git a/package.json b/package.json index d2bab4d82..efcb6b109 100644 --- a/package.json +++ b/package.json @@ -41,15 +41,15 @@ }, "homepage": "https://github.com/jasonkuhrt/graphql-request", "scripts": { - "build:docs": "doctoc README.md --notitle", "dev": "rm -rf dist && tsc --watch", - "format": "prettier --write .", + "format": "pnpm build:docs && prettier --write .", "lint": "eslint . --ext .ts,.tsx --fix", "check": "pnpm check:types && pnpm check:format && pnpm check:lint", "check:types": "pnpm tsc --noEmit", - "check:format": "prettier --check .", + "check:format": "prettier --check . && pnpm build:docs && git diff --exit-code README.md", "check:lint": "eslint . --ext .ts,.tsx --max-warnings 0", "prepublishOnly": "pnpm build", + "build:docs": "doctoc README.md --notitle && prettier --write README.md", "build": "pnpm clean && pnpm build:cjs && pnpm build:esm", "build:cjs": "pnpm tsc --project tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > build/cjs/package.json", "build:esm": "pnpm tsc --project tsconfig.esm.json",