build(plugin-configs): move cache directory to node_modules

This commit is contained in:
Jack Westbrook
2024-02-13 09:50:13 +01:00
parent 28ddcfc715
commit dd556da158
@@ -32,7 +32,7 @@ const config = async (env: Record<string, unknown>): Promise<Configuration> => {
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<string, unknown>): Promise<Configuration> => {
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<string, unknown>): Promise<Configuration> => {
unsafeCache: true,
},
stats: 'minimal',
watchOptions: {
ignored: ['**/node_modules', '**/dist', '**/.yarn'],
},