Skip to content

Commit ba2a496

Browse files
authored
Add ts errors check (#205)
* Add checking TS errors to CI * Update version of diff line numbers * Update version of changed-files * Made run only on pull requests * Simpler way to check for typescript errors * Fixed tscheck * Fixed so it works locally
1 parent 998f4fe commit ba2a496

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ jobs:
1515
node-version: 20
1616
- name: Install Dependencies
1717
run: npm ci
18+
- name: Check TypeScript Errors
19+
run: npm run tscheck
1820
- name: Install Playwright Browsers
1921
run: npx playwright install --with-deps
20-
2122
- name: Build Project
2223
run: npm run build
2324
- name: Run tests
24-
run: npm test
25+
run: npm test

package-lock.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@
2424
"react-dom": "^19.1.0",
2525
"react-i18next": "^15.6.0",
2626
"react-syntax-highlighter": "^15.6.1",
27+
"typescript": "^5.9.2",
2728
"web-vitals": "^5.0.3"
2829
},
2930
"scripts": {
3031
"start": "vite",
3132
"build": "vite build",
3233
"test": "vitest",
3334
"gen": "node src/Blockly/gen.js",
34-
"dev": "vite"
35+
"dev": "vite",
36+
"tscheck": "npx tsc -b --noEmit"
3537
},
3638
"eslintConfig": {
3739
"extends": [

tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
"noFallthroughCasesInSwitch": true,
2121
"noUncheckedSideEffectImports": true
2222
},
23-
"include": ["vite.config.ts"]
23+
"include": ["vite.config.mts"]
2424
}

0 commit comments

Comments
 (0)