Skip to content

Commit

Permalink
Update Typescript dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
gaudes committed Nov 11, 2024
1 parent 9797f91 commit 2a24b1e
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 36 deletions.
9 changes: 5 additions & 4 deletions build/main.js

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

2 changes: 1 addition & 1 deletion build/main.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/modules/global-helper.js

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

2 changes: 1 addition & 1 deletion build/modules/global-helper.js.map

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

19 changes: 14 additions & 5 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@iobroker/adapter-dev": "^1.3.0",
"@iobroker/testing": "^5.0.0",
"@sentry/types": "^7.104.0",
"@tsconfig/node18": "^18.2.4",
"@types/chai": "^4.3.20",
"@types/chai-as-promised": "^8.0.1",
"@types/image-size": "^0.8.0",
Expand All @@ -56,7 +57,7 @@
"sinon-chai": "^3.7.0",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.2",
"typescript": "~5.0.4"
"typescript": "~5.6.3"
},
"main": "build/main.js",
"scripts": {
Expand Down
38 changes: 14 additions & 24 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Root tsconfig to set the settings and power editor support for all TS files
{
"compileOnSave": true,
// To update the compilation target, install a different version of @tsconfig/node... and reference it here
// https://github.com/tsconfig/bases#node-18-tsconfigjson
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
// do not compile anything, this file is just to configure type checking
// the compilation is configured in tsconfig.build.json
Expand All @@ -10,40 +12,28 @@
"allowJs": true,
"checkJs": true,

"skipLibCheck": true, // Don't report errors in 3rd party definitions
"noEmitOnError": true,
"outDir": "./build/",
"removeComments": false,
"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
// this is necessary for the automatic typing of the adapter config

// This is necessary for the automatic typing of the adapter config
"resolveJsonModule": true,

// Set this to false if you want to disable the very strict rules (not recommended)
"strict": true,
// Or enable some of those features for more fine-grained control
// If you want to disable the stricter type checks (not recommended), uncomment the following line
// "strict": false,
// And enable some of those features for more fine-grained control
// "strictNullChecks": true,
// "strictPropertyInitialization": true,
// "strictBindCallApply": true,
// "noImplicitAny": true,
// "noUnusedLocals": true,
// "noUnusedParameters": true,

// Consider targetting es2019 or higher if you only support Node.js 12+
"target": "es2018",
// Uncomment this if you want the old behavior of catch variables being `any`
// "useUnknownInCatchVariables": false,

"sourceMap": true,
"inlineSourceMap": false,
"watch": false
"inlineSourceMap": false
},
"include": [
"src/**/*.ts",
"admin/**/*.ts",
"admin/**/*.tsx"
],
"exclude": [
"build/**",
"node_modules/**"
]
}
"include": ["src/**/*.ts", "test/**/*.ts"],
"exclude": ["build/**", "node_modules/**", "widgets/**"]
}

0 comments on commit 2a24b1e

Please sign in to comment.