From fcbb355f47e1fca04b1e4e01579ad7b0f623f544 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Wed, 12 Mar 2025 07:25:37 +0100 Subject: [PATCH] Revert "fix(ignore): Move to `Node16` `module` (#26704)" This reverts commit ea5e0d47a599ac66dcf4671e7a8b0687d8a08b85. --- lib/util/utils.ts | 1 - tsconfig.json | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/utils.ts b/lib/util/utils.ts index 7728619a..b971bc3e 100644 --- a/lib/util/utils.ts +++ b/lib/util/utils.ts @@ -52,7 +52,6 @@ function capitalize(s: string): string { async function getZigbee2MQTTVersion(includeCommitHash = true): Promise<{commitHash?: string; version: string}> { const packageJSON = await import('../../package.json'); - // @ts-expect-error typing incorrect const version = packageJSON.version; let commitHash: string | undefined; diff --git a/tsconfig.json b/tsconfig.json index 8a4ee126..27f73c8f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,13 +1,14 @@ { "compilerOptions": { "allowSyntheticDefaultImports": true, - "module": "Node16", + "module": "commonjs", "esModuleInterop": true, "target": "ES2022", "lib": ["ES2022"], "strict": true, "noImplicitAny": true, "noImplicitThis": true, + "moduleResolution": "node", "declaration": true, "declarationMap": true, "outDir": "dist",