mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 00:12:29 +00:00
Add linter script
Fix issue with running `cd src/handbook` while in the handbook directory for building
This commit is contained in:
parent
4664a21fab
commit
bb20d0fd80
2
.github/workflows/handbook.yml
vendored
2
.github/workflows/handbook.yml
vendored
@ -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:
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user