diff --git a/src/build-adapter-handlers.ts b/src/build-adapter-handlers.ts index a089881..2922b4b 100644 --- a/src/build-adapter-handlers.ts +++ b/src/build-adapter-handlers.ts @@ -1,4 +1,5 @@ /** Build script to use esbuild without specifying 1000 CLI options */ +// @ts-expect-error esm2cjs/execa needs to be fixed to allow cjs import with types import { ExecaChildProcess, execaNode } from "@esm2cjs/execa"; import { gray, green, red } from "ansi-colors"; import type { diff --git a/tsconfig.json b/tsconfig.json index 5f7afd0..f7935a8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,6 +15,11 @@ "outDir": "./build/", "removeComments": false, + "types": [ + "@iobroker/types", + "node", + "mocha" + ], // Avoid runtime imports that are unnecessary // "importsNotUsedAsValues": "error",