mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-24 06:42:26 +00:00
fix(ignore): Move to Node16 module (#26717)
This commit is contained in:
1 parent
e3985002c2
commit
be722a0500
3 files changed
+3
-4
No files matched your search
+1
-1
@@ -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
@@ -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
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user