Skip to content

Commit

Permalink
Add astro check to lint step so types are generated before tsc runs
Browse files Browse the repository at this point in the history
  • Loading branch information
askoufis committed Jul 30, 2023
1 parent 4a163a8 commit 3ea394e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install Dependencies
run: pnpm i

- name: Typecheck, eslint and prettier
- name: Astro check, tsc, eslint and prettier
run: pnpm lint

- name: Test
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"preview": "pnpm --filter 'site' preview",
"deploy:site": "pnpm --filter 'site' run deploy",
"eslint": "eslint --cache .",
"lint": "pnpm run tsc && pnpm run eslint && pnpm format:check",
"lint": "pnpm --filter 'site' check && pnpm run tsc && pnpm run eslint && pnpm format:check",
"format": "eslint --cache . --fix && prettier --cache --write . '**/*.astro'",
"format:check": "prettier --cache --list-different . '**/*.astro'",
"test": "echo 'no tests yet'",
Expand Down
1 change: 1 addition & 0 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"check": "astro check",
"deploy": "tsx ./scripts/deploy.ts"
},
"dependencies": {
Expand Down

0 comments on commit 3ea394e

Please sign in to comment.