mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Toolkit: clean node_modules/@grafana/data/node_modules in prepare (#27554)
This commit is contained in:
parent
b6172b11b3
commit
b3b72b8ae6
@ -37,6 +37,10 @@ const copyIfNonExistent = (srcPath: string, destPath: string) =>
|
||||
|
||||
export const prepare = useSpinner<void>('Preparing', async () => {
|
||||
await Promise.all([
|
||||
// Remove local dependencies for @grafana/data/node_modules
|
||||
// See: https://github.com/grafana/grafana/issues/26748
|
||||
rimraf(resolvePath(__dirname, 'node_modules/@grafana/data/node_modules')),
|
||||
|
||||
// Copy only if local tsconfig does not exist. Otherwise this will work, but have odd behavior
|
||||
copyIfNonExistent(
|
||||
resolvePath(__dirname, '../../config/tsconfig.plugin.local.json'),
|
||||
|
Loading…
Reference in New Issue
Block a user