From 52394a1b81ebe3809ffd4e43f1819246b30fe89d Mon Sep 17 00:00:00 2001 From: Andres Martinez Gotor Date: Thu, 19 Oct 2023 10:45:11 +0200 Subject: [PATCH] Chore: move cache dir for plugins to the root (#76680) --- .github/CODEOWNERS | 1 + packages/grafana-plugin-configs/webpack.config.ts | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b7e4f1e67d1..24a6c506d18 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -329,6 +329,7 @@ /packages/grafana-schema/src/**/*tempo* @grafana/observability-traces-and-profiling /packages/grafana-flamegraph/ @grafana/observability-traces-and-profiling /plugins-bundled/ @grafana/plugins-platform-frontend +/packages/grafana-plugin-configs/ @grafana/plugins-platform-frontend # root files, mostly frontend diff --git a/packages/grafana-plugin-configs/webpack.config.ts b/packages/grafana-plugin-configs/webpack.config.ts index 243cf76d308..883f1873cbc 100644 --- a/packages/grafana-plugin-configs/webpack.config.ts +++ b/packages/grafana-plugin-configs/webpack.config.ts @@ -28,6 +28,13 @@ const config = async (env: any): Promise => { buildDependencies: { config: [__filename], }, + cacheDirectory: path.resolve(__dirname, '../../.yarn/.cache/webpack', path.basename(process.cwd())), + cacheLocation: path.resolve( + __dirname, + '../../.yarn/.cache/eslint-webpack-plugin', + path.basename(process.cwd()), + '.eslintcache' + ), }, context: process.cwd(),