Skip to content

Commit

Permalink
add check-ts step to github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Mar 12, 2024
1 parent 3b86b73 commit 2ffc08a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
- name: Build
run: NODE_OPTIONS=--max_old_space_size=8192 npm run build

- name: Test TypeScript
run: npm run check-ts

- name: Run local tests
run: npm run test-gui

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@
"@alcalzone/release-script-plugin-iobroker": "^3.7.0",
"@alcalzone/release-script-plugin-license": "^3.7.0",
"@iobroker/vis-2-widgets-testing": "^1.0.0",
"@tsconfig/node16": "^16.1.1",
"@tsconfig/node18": "^18.2.2",
"@types/mocha": "^10.0.6",
"chai": "^4.3.10",
"gulp": "^4.0.2",
"iobroker.web": "*",
"mocha": "^10.3.0",
"typescript": "^5.4.2",
"unzipper": "^0.10.14"
},
"bugs": {
Expand All @@ -57,6 +58,7 @@
"main.js"
],
"scripts": {
"check-ts": "tsc --project src/tsconfig.json",
"start": "cd src && npm run start",
"test": "mocha ./test/*.engine.js --exit",
"test-gui": "mocha ./test/*.gui.js --exit",
Expand Down
3 changes: 2 additions & 1 deletion src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"module": "ES2020",
"moduleResolution": "Bundler",
"baseUrl": ".",
"checkJs": true,
"checkJs": false,
"noEmit": false,
"outDir": "./build",
"sourceMap": true,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Root tsconfig to set the settings and power editor support for all TS files
{
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
// do not compile anything, this file is just to configure type checking
"noEmit": true,
Expand Down

0 comments on commit 2ffc08a

Please sign in to comment.