From ea5e0d47a599ac66dcf4671e7a8b0687d8a08b85 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Tue, 11 Mar 2025 21:51:04 +0100 Subject: [PATCH] fix(ignore): Move to `Node16` `module` (#26704) --- 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 b971bc3e0..7728619a4 100644 --- a/lib/util/utils.ts +++ b/lib/util/utils.ts @@ -52,6 +52,7 @@ 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 27f73c8f7..8a4ee1261 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,14 +1,13 @@ { "compilerOptions": { "allowSyntheticDefaultImports": true, - "module": "commonjs", + "module": "Node16", "esModuleInterop": true, "target": "ES2022", "lib": ["ES2022"], "strict": true, "noImplicitAny": true, "noImplicitThis": true, - "moduleResolution": "node", "declaration": true, "declarationMap": true, "outDir": "dist",