mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 11:56:01 +01:00 
			
		
		
		
	fix eslint module
This commit is contained in:
		@@ -76,6 +76,7 @@ const copy = async () => {
 | 
				
			|||||||
    "node_modules/panzoom/dist/",
 | 
					    "node_modules/panzoom/dist/",
 | 
				
			||||||
    "node_modules/i18next/",
 | 
					    "node_modules/i18next/",
 | 
				
			||||||
    "node_modules/i18next-http-backend/",
 | 
					    "node_modules/i18next-http-backend/",
 | 
				
			||||||
 | 
					    "node_modules/eslint/bin/",
 | 
				
			||||||
    "node_modules/jsplumb/dist/",
 | 
					    "node_modules/jsplumb/dist/",
 | 
				
			||||||
    "node_modules/vanilla-js-wheel-zoom/dist/",
 | 
					    "node_modules/vanilla-js-wheel-zoom/dist/",
 | 
				
			||||||
    "node_modules/mark.js/dist/",
 | 
					    "node_modules/mark.js/dist/",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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}/node_modules/i18next-http-backend/`, persistentCacheStatic(path.join(srcRoot, "..", 'node_modules/i18next-http-backend/')));
 | 
				
			||||||
    app.use(`/${assetPath}/translations/`, persistentCacheStatic(path.join(srcRoot, "public", "translations/")));
 | 
					    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/')));
 | 
					    app.use(`/${assetPath}/node_modules/jsplumb/dist/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/jsplumb/dist/')));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user