From 40c8cd2df94507b2a95f3d3c3d2310034556a602 Mon Sep 17 00:00:00 2001 From: Strek Date: Wed, 24 Nov 2021 22:58:14 +0530 Subject: [PATCH] Add check-all script for beta site (#4120) * Update package.json * Update README.md * Update package.json * Add tsc for check-all as well * Update README.md * Update README.md Co-authored-by: Dan Abramov --- beta/README.md | 2 +- beta/package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/beta/README.md b/beta/README.md index e8e0a919..85f6703e 100644 --- a/beta/README.md +++ b/beta/README.md @@ -48,7 +48,7 @@ The documentation is divided into several sections with a different tone and pur ### Test the change 1. If possible, test any visual changes in all latest versions of common browsers, on both desktop and mobile. -1. Run `yarn check-all` from the `beta` folder. (This will run Prettier, ESLint, and Flow.) +2. Run `yarn check-all` from the `beta` folder. (This will run Prettier, ESLint and validate types.) ### Push it diff --git a/beta/package.json b/beta/package.json index a6c6bedb..4e2a050c 100644 --- a/beta/package.json +++ b/beta/package.json @@ -17,7 +17,8 @@ "ci-check": "npm-run-all prettier:diff --parallel lint tsc", "tsc": "tsc --noEmit", "start": "next start", - "postinstall": "is-ci || (cd .. && husky install beta/.husky)" + "postinstall": "is-ci || (cd .. && husky install beta/.husky)", + "check-all": "npm-run-all prettier lint:fix tsc" }, "dependencies": { "@codesandbox/sandpack-react": "^0.1.20",