From f6077d58f1ff92c018ab7426b102165d026f8075 Mon Sep 17 00:00:00 2001 From: louistiti Date: Mon, 20 Mar 2023 23:35:07 +0800 Subject: [PATCH] chore: upgrade to TypeScript 5+ --- package.json | 14 +++++++------- server/src/core/nlp/nlu/nlu.ts | 1 - tsconfig.json | 1 + 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 45f365df..ceea3a62 100644 --- a/package.json +++ b/package.json @@ -105,13 +105,13 @@ "devDependencies": { "@nlpjs/utils": "4.24.1", "@swc/core": "1.3.14", - "@tsconfig/node16-strictest": "1.0.3", + "@tsconfig/node16-strictest": "1.0.4", "@types/cli-spinner": "0.2.1", "@types/fluent-ffmpeg": "2.1.20", "@types/node": "18.7.13", "@types/node-wav": "0.0.0", - "@typescript-eslint/eslint-plugin": "5.36.1", - "@typescript-eslint/parser": "5.36.1", + "@typescript-eslint/eslint-plugin": "5.55.0", + "@typescript-eslint/parser": "5.55.0", "cli-spinner": "0.2.10", "eslint": "8.22.0", "eslint-config-prettier": "8.5.0", @@ -128,13 +128,13 @@ "lint-staged": "13.0.3", "nodemon": "2.0.19", "prettier": "2.7.1", - "resolve-tspaths": "0.7.4", + "resolve-tspaths": "0.8.8", "semver": "7.3.5", "shx": "0.3.3", "ts-node": "10.9.1", - "tsc-watch": "5.0.3", - "tsconfig-paths": "4.1.0", - "typescript": "4.9.3", + "tsc-watch": "6.0.0", + "tsconfig-paths": "4.1.2", + "typescript": "5.0.2", "vite": "3.0.9" } } diff --git a/server/src/core/nlp/nlu/nlu.ts b/server/src/core/nlp/nlu/nlu.ts index f3d82261..4518f31d 100644 --- a/server/src/core/nlp/nlu/nlu.ts +++ b/server/src/core/nlp/nlu/nlu.ts @@ -12,7 +12,6 @@ import { version } from '@@/package.json' import { HAS_LOGGER, IS_TESTING_ENV, TCP_SERVER_BIN_PATH } from '@/constants' import { TCP_CLIENT, BRAIN, SOCKET_SERVER, MODEL_LOADER, NER } from '@/core' import { LogHelper } from '@/helpers/log-helper' -import { StringHelper } from '@/helpers/string-helper' import { LangHelper } from '@/helpers/lang-helper' import Conversation from '@/core/conversation' diff --git a/tsconfig.json b/tsconfig.json index 9a098d0f..bff82afe 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,6 +8,7 @@ "@@/*": ["./*"], "@/*": ["./server/src/*"] }, + "ignoreDeprecations": "5.0", "allowJs": true, "checkJs": false, "resolveJsonModule": true