Commit b3b72b8a by Ryan McKinley Committed by GitHub

Toolkit: clean node_modules/@grafana/data/node_modules in prepare (#27554)

parent b6172b11
...@@ -37,6 +37,10 @@ const copyIfNonExistent = (srcPath: string, destPath: string) => ...@@ -37,6 +37,10 @@ const copyIfNonExistent = (srcPath: string, destPath: string) =>
export const prepare = useSpinner<void>('Preparing', async () => { export const prepare = useSpinner<void>('Preparing', async () => {
await Promise.all([ 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 // Copy only if local tsconfig does not exist. Otherwise this will work, but have odd behavior
copyIfNonExistent( copyIfNonExistent(
resolvePath(__dirname, '../../config/tsconfig.plugin.local.json'), resolvePath(__dirname, '../../config/tsconfig.plugin.local.json'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment