Skip to content

Commit be722a0

Browse files
authored
fix(ignore): Move to Node16 module (#26717)
1 parent e398500 commit be722a0

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lib/util/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function capitalize(s: string): string {
5151
}
5252

5353
async function getZigbee2MQTTVersion(includeCommitHash = true): Promise<{commitHash?: string; version: string}> {
54-
const packageJSON = await import('../../package.json');
54+
const packageJSON = (await import('../../package.json', {with: {type: 'json'}})).default;
5555
const version = packageJSON.version;
5656
let commitHash: string | undefined;
5757

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
],
2323
"scripts": {
2424
"build": "tsc && node index.js writehash",
25-
"build-watch": "tsc --watch",
25+
"build:watch": "tsc --watch",
2626
"eslint": "eslint --max-warnings=0",
2727
"pretty:write": "prettier --write .",
2828
"pretty:check": "prettier --check .",

tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
22
"compilerOptions": {
33
"allowSyntheticDefaultImports": true,
4-
"module": "commonjs",
4+
"module": "Node16",
55
"esModuleInterop": true,
66
"target": "ES2022",
77
"lib": ["ES2022"],
88
"strict": true,
99
"noImplicitAny": true,
1010
"noImplicitThis": true,
11-
"moduleResolution": "node",
1211
"declaration": true,
1312
"declarationMap": true,
1413
"outDir": "dist",

0 commit comments

Comments
 (0)