From dd556da1580aec85c685cc97f516142bc1f9a997 Mon Sep 17 00:00:00 2001 From: Jack Westbrook Date: Tue, 13 Feb 2024 09:50:13 +0100 Subject: [PATCH] build(plugin-configs): move cache directory to node_modules --- packages/grafana-plugin-configs/webpack.config.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/grafana-plugin-configs/webpack.config.ts b/packages/grafana-plugin-configs/webpack.config.ts index 3b53e20553a..35ebf07ee7b 100644 --- a/packages/grafana-plugin-configs/webpack.config.ts +++ b/packages/grafana-plugin-configs/webpack.config.ts @@ -32,7 +32,7 @@ const config = async (env: Record): Promise => { buildDependencies: { config: [__filename], }, - cacheDirectory: path.resolve(__dirname, '../../.yarn/.cache/webpack', path.basename(process.cwd())), + cacheDirectory: path.resolve(__dirname, '../../node_modules/webpack', path.basename(process.cwd())), }, context: process.cwd(), @@ -199,7 +199,7 @@ const config = async (env: Record): Promise => { lintDirtyModulesOnly: true, // don't lint on start, only lint changed files cacheLocation: path.resolve( __dirname, - '../../.yarn/.cache/eslint-webpack-plugin', + '../../node_modules/.cache/eslint-webpack-plugin', path.basename(process.cwd()), '.eslintcache' ), @@ -212,6 +212,8 @@ const config = async (env: Record): Promise => { unsafeCache: true, }, + stats: 'minimal', + watchOptions: { ignored: ['**/node_modules', '**/dist', '**/.yarn'], },