File tree 3 files changed +3
-4
lines changed
3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ function capitalize(s: string): string {
51
51
}
52
52
53
53
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 ;
55
55
const version = packageJSON . version ;
56
56
let commitHash : string | undefined ;
57
57
Original file line number Diff line number Diff line change 22
22
],
23
23
"scripts" : {
24
24
"build" : " tsc && node index.js writehash" ,
25
- "build- watch" : " tsc --watch" ,
25
+ "build: watch" : " tsc --watch" ,
26
26
"eslint" : " eslint --max-warnings=0" ,
27
27
"pretty:write" : " prettier --write ." ,
28
28
"pretty:check" : " prettier --check ." ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"allowSyntheticDefaultImports" : true ,
4
- "module" : " commonjs " ,
4
+ "module" : " Node16 " ,
5
5
"esModuleInterop" : true ,
6
6
"target" : " ES2022" ,
7
7
"lib" : [" ES2022" ],
8
8
"strict" : true ,
9
9
"noImplicitAny" : true ,
10
10
"noImplicitThis" : true ,
11
- "moduleResolution" : " node" ,
12
11
"declaration" : true ,
13
12
"declarationMap" : true ,
14
13
"outDir" : " dist" ,
You can’t perform that action at this time.
0 commit comments