From 37c5cc2b42ce2b49f59f08165a40e8a9bfa17190 Mon Sep 17 00:00:00 2001 From: Jason Kuhrt Date: Wed, 5 Apr 2023 08:29:59 -0400 Subject: [PATCH] chore: check docs build on pr ci (#502) --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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",