From bb20d0fd8022c5ee376c3717113357f0ca1bd0da Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Thu, 6 Apr 2023 18:42:38 -0400 Subject: [PATCH] Add linter script Fix issue with running `cd src/handbook` while in the handbook directory for building --- .github/workflows/handbook.yml | 2 +- src/handbook/package.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/handbook.yml b/.github/workflows/handbook.yml index 84a752faa..ce454b70a 100644 --- a/.github/workflows/handbook.yml +++ b/.github/workflows/handbook.yml @@ -74,7 +74,7 @@ jobs: run: npm install - name: Build handbook working-directory: src/handbook - run: cd src/handbook && npm run build + run: npm run build - name: Upload build uses: actions/upload-artifact@v3 with: diff --git a/src/handbook/package.json b/src/handbook/package.json index 15252f733..b5b3fc1bc 100644 --- a/src/handbook/package.json +++ b/src/handbook/package.json @@ -8,7 +8,9 @@ "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview" + "preview": "vite preview", + + "lint": "npx prettier --write \"src/handbook/**/*.{ts,tsx,js,jsx,json,md}\"" }, "dependencies": {