From b5e8fcaf57ed01f957c7ecb9607c5efd460902c7 Mon Sep 17 00:00:00 2001 From: Jin <22962980+JYC333@users.noreply.github.com> Date: Sun, 11 Aug 2024 09:49:40 +0200 Subject: [PATCH] fix eslint module --- bin/copy-dist.ts | 1 + src/routes/assets.ts | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/copy-dist.ts b/bin/copy-dist.ts index 61d8b039f..fc30d3eed 100644 --- a/bin/copy-dist.ts +++ b/bin/copy-dist.ts @@ -76,6 +76,7 @@ const copy = async () => { "node_modules/panzoom/dist/", "node_modules/i18next/", "node_modules/i18next-http-backend/", + "node_modules/eslint/bin/", "node_modules/jsplumb/dist/", "node_modules/vanilla-js-wheel-zoom/dist/", "node_modules/mark.js/dist/", diff --git a/src/routes/assets.ts b/src/routes/assets.ts index 39c611df3..ddadc9af9 100644 --- a/src/routes/assets.ts +++ b/src/routes/assets.ts @@ -75,8 +75,7 @@ function register(app: express.Application) { app.use(`/${assetPath}/node_modules/i18next-http-backend/`, persistentCacheStatic(path.join(srcRoot, "..", 'node_modules/i18next-http-backend/'))); app.use(`/${assetPath}/translations/`, persistentCacheStatic(path.join(srcRoot, "public", "translations/"))); - // Seems work without this, not sure will cause other bugs. Maybe can test without this for a while. - // app.use(`/${assetPath}/node_modules/eslint/bin/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/eslint/bin/'))); + app.use(`/${assetPath}/node_modules/eslint/bin/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/eslint/bin/'))); app.use(`/${assetPath}/node_modules/jsplumb/dist/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/jsplumb/dist/')));