Chore: Switch yarn 2 to plug-n-play strategy (#40300)

This commit is contained in:
kay delaney
2021-10-27 14:21:07 +01:00
committed by GitHub
parent 690849cfd6
commit 3a7c5a0755
65 changed files with 3122 additions and 1393 deletions

View File

@ -46,7 +46,6 @@ export const prepare = () =>
// 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'),

View File

@ -12,7 +12,7 @@ const updateCiConfig = () =>
fs.mkdirSync(ciConfigPath);
}
const sourceFile = path.join('node_modules/@grafana/toolkit/config/circleci', 'config.yml');
const sourceFile = require.resolve('@grafana/toolkit/config/circleci/config.yml');
const destFile = path.join(ciConfigPath, 'config.yml');
fs.copyFileSync(sourceFile, destFile);
});