fix(ignore): Move to Node16 module (#26717)

This commit is contained in:
Koen Kanters authored and GitHub committed 2025-03-12 20:01:11 +00:00
1 parent e3985002c2
commit be722a0500
3 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ function capitalize(s: string): string {
}
async function getZigbee2MQTTVersion(includeCommitHash = true): Promise<{commitHash?: string; version: string}> {
const packageJSON = await import('../../package.json');
const packageJSON = (await import('../../package.json', {with: {type: 'json'}})).default;
const version = packageJSON.version;
let commitHash: string | undefined;
+1 -1
View File
@@ -22,7 +22,7 @@
],
"scripts": {
"build": "tsc && node index.js writehash",
"build-watch": "tsc --watch",
"build:watch": "tsc --watch",
"eslint": "eslint --max-warnings=0",
"pretty:write": "prettier --write .",
"pretty:check": "prettier --check .",
+1 -2
View File
@@ -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",