Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: enable eslint cache (#16570)

Ryosei Karakie95f0fcceb2e
diff --git a/web/package.json b/web/package.json
index 3bcc1b90dde..1a0b8119f3c 100644
--- a/web/package.json
+++ b/web/package.json
@@ -9,10 +9,10 @@
"dev": "cross-env NODE_OPTIONS='--inspect' next dev",
"build": "next build",
"start": "cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public && cross-env PORT=$npm_config_port HOSTNAME=$npm_config_host node .next/standalone/server.js",
- "lint": "pnpm eslint",
+ "lint": "pnpm eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache",
"fix": "next lint --fix",
- "eslint-fix": "eslint --fix",
- "eslint-fix-only-show-error": "eslint --fix --quiet",
+ "eslint-fix": "eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache --fix",
+ "eslint-fix-only-show-error": "eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache --fix --quiet",
"prepare": "cd ../ && node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky ./web/.husky",
"gen-icons": "node ./app/components/base/icons/script.mjs",
"uglify-embed": "node ./bin/uglify-embed",