Skip to content

Commit

Permalink
Run latest tsc in CI
Browse files Browse the repository at this point in the history
react-scripts prevents us from depending on tsc 5.x, but we need to use
tsc 5.x for type checking so that "moduleResolution": "bundler" is
supported; use npx to run the latest tsc in CI.
  • Loading branch information
psvenk committed Dec 2, 2024
1 parent 9f9ba5f commit dd1a8f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.node-version }}
- name: Install node
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.node-version }}
- name: Install node
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
Expand All @@ -45,6 +45,6 @@ jobs:
- name: Run ESLint
run: npm run ci-eslint
- name: Run tsc
run: npm run ci-tsc
run: npx tsc@latest
- name: Run build
run: npm run build
4 changes: 1 addition & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
"eject": "react-scripts eject",
"format": "prettier --write **/*.{ts,tsx}",
"ci-prettier": "prettier --check **/*.{ts,tsx}",
"ci-eslint": "eslint **/*.{ts,tsx}",
"ci-tsc": "tsc"
"ci-eslint": "eslint **/*.{ts,tsx}"
},
"eslintConfig": {
"extends": [
Expand Down

0 comments on commit dd1a8f4

Please sign in to comment.