From b41435f3adc17841eb65b0c07e47e6da4afcbdbd Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 11 Dec 2023 00:32:43 +0200 Subject: [PATCH] don't broadcast warnings --- options.json | 2 +- package.json | 5 +++-- tsconfig.json | 11 ++++++++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/options.json b/options.json index 704a8bf..1ca8ac1 100644 --- a/options.json +++ b/options.json @@ -57,7 +57,7 @@ "customColours": {}, "logLevel": 0, "logLevelMapping": {}, - "broadcastLevel": 3, + "broadcastLevel": 4, "pruneDays": 7 }, "storage": { diff --git a/package.json b/package.json index ef88697..9a4a860 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,13 @@ "type": "module", "scripts": { "start": "yarn build && node --enable-source-maps build/index.js", - "dev": "nodemon --delay 5 --ignore *.json --trace-warnings --unhandled-rejections=strict index.js", + "dev": "nodemon --signal SIGINT --delay 5 -e js --trace-warnings --unhandled-rejections=strict build/index.js", "debug": "node --trace-warnings --inspect index.js", "update": "git pull && cd api && yarn update", "test": "jest --detectOpenHandles", "lint": "eslint --fix src/", - "build": "tsc --build" + "build": "tsc --build", + "watch": "tsc --watch" }, "repository": { "type": "git", diff --git a/tsconfig.json b/tsconfig.json index deae0a1..d4b2d78 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -68,7 +68,7 @@ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ - // "newLine": "crlf", /* Set the newline character for emitting files. */ + "newLine": "lf", /* Set the newline character for emitting files. */ "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ @@ -79,7 +79,7 @@ /* Interop Constraints */ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ - // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ + "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ @@ -111,5 +111,10 @@ }, "compileOnSave": true, "exclude": ["archive", "api"], - "include": ["src", "index.ts", "@types"] + "include": ["src", "index.ts", "@types"], + "watchOptions": { + "watchFile": "useFsEvents", + "watchDirectory": "useFsEvents", + "excludeDirectories": ["**/node_modules", "./build"] + } } \ No newline at end of file