Add linter script

Fix issue with running `cd src/handbook` while in the handbook directory for building
This commit is contained in:
KingRainbow44 2023-04-06 18:42:38 -04:00
parent 4664a21fab
commit bb20d0fd80
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
2 changed files with 4 additions and 2 deletions

View File

@ -74,7 +74,7 @@ jobs:
run: npm install run: npm install
- name: Build handbook - name: Build handbook
working-directory: src/handbook working-directory: src/handbook
run: cd src/handbook && npm run build run: npm run build
- name: Upload build - name: Upload build
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:

View File

@ -8,7 +8,9 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "tsc && vite build", "build": "tsc && vite build",
"preview": "vite preview" "preview": "vite preview",
"lint": "npx prettier --write \"src/handbook/**/*.{ts,tsx,js,jsx,json,md}\""
}, },
"dependencies": { "dependencies": {