From 3ed1ff73c29ffee8ab615cb17bde34883171d9ef Mon Sep 17 00:00:00 2001 From: SamTv12345 Date: Fri, 13 Sep 2024 08:28:47 +0200 Subject: [PATCH] Fixed tsc check. --- pnpm-lock.yaml | 8 ++++++++ src/node/hooks/express/specialpages.ts | 2 +- src/package.json | 5 +++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 87558a852..05a505805 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -327,6 +327,9 @@ importers: '@types/underscore': specifier: ^1.11.15 version: 1.11.15 + '@types/whatwg-mimetype': + specifier: ^3.0.2 + version: 3.0.2 chokidar: specifier: ^4.0.0 version: 4.0.0 @@ -1628,6 +1631,9 @@ packages: '@types/web-bluetooth@0.0.20': resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==} + '@types/whatwg-mimetype@3.0.2': + resolution: {integrity: sha512-c2AKvDT8ToxLIOUlN51gTiHXflsfIFisS4pO7pDPoKouJCESkhZnEy623gwP9laCy5lnLDAw1vAzu2vM2YLOrA==} + '@typescript-eslint/eslint-plugin@7.17.0': resolution: {integrity: sha512-pyiDhEuLM3PuANxH7uNYan1AaFs5XE0zw1hq69JBvGvE7gSuEoQl1ydtEe/XQeoC3GQxLXyOVa5kNOATgM638A==} engines: {node: ^18.18.0 || >=20.0.0} @@ -5897,6 +5903,8 @@ snapshots: '@types/web-bluetooth@0.0.20': {} + '@types/whatwg-mimetype@3.0.2': {} + '@typescript-eslint/eslint-plugin@7.17.0(@typescript-eslint/parser@7.17.0(eslint@9.10.0)(typescript@5.6.2))(eslint@9.10.0)(typescript@5.6.2)': dependencies: '@eslint-community/regexpp': 4.11.0 diff --git a/src/node/hooks/express/specialpages.ts b/src/node/hooks/express/specialpages.ts index b2ea3614e..ce4a90bb4 100644 --- a/src/node/hooks/express/specialpages.ts +++ b/src/node/hooks/express/specialpages.ts @@ -113,7 +113,7 @@ const convertTypescript = (content: string) => { const handleLiveReload = async (args: any, padString: string, timeSliderString: string, indexString: any) => { const chokidar = await import('chokidar') - const watcher = chokidar.watch(path.join(settings.root, 'src', 'static', 'js')); + const watcher = chokidar.watch(path.join(settings.root, 'src', 'static', 'js'), {}); let routeHandlers: { [key: string]: Function } = {}; const setRouteHandler = (path: string, newHandler: Function) => { diff --git a/src/package.json b/src/package.json index 84754d54e..75281e338 100644 --- a/src/package.json +++ b/src/package.json @@ -63,6 +63,7 @@ "rehype": "^13.0.1", "rehype-minify-whitespace": "^6.0.0", "resolve": "1.22.8", + "rusty-store-kv": "^1.3.1", "security": "1.0.0", "semver": "^7.6.3", "socket.io": "^4.7.5", @@ -73,8 +74,7 @@ "ueberdb2": "^5.0.2", "underscore": "1.13.7", "unorm": "1.6.0", - "wtfnode": "^0.9.3", - "rusty-store-kv": "^1.3.1" + "wtfnode": "^0.9.3" }, "bin": { "etherpad-healthcheck": "../bin/etherpad-healthcheck", @@ -98,6 +98,7 @@ "@types/sinon": "^17.0.3", "@types/supertest": "^6.0.2", "@types/underscore": "^1.11.15", + "@types/whatwg-mimetype": "^3.0.2", "chokidar": "^4.0.0", "eslint": "^9.10.0", "eslint-config-etherpad": "^4.0.4",