mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 09:52:12 +08:00
Chore: Switch yarn 2 to plug-n-play strategy (#40300)
This commit is contained in:
@ -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'),
|
||||
|
@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user