Sourcemaps allow debugging the original TypeScript code, even when ioBroker executes the compiled JS files. Furthermore, the error messages in ioBroker also reference the original ts files if you enable sourcemaps. To make use of this in your existing adapters, do the following changes:
-
Change
tsconfig.json
as follows:- "sourceMap": false, + "sourceMap": true,
-
In
.gitignore
and.npmignore
remove these entries if they exist:maps/ *.maps