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

@@ -3,6 +3,7 @@ import commonjs from '@rollup/plugin-commonjs';
import sourceMaps from 'rollup-plugin-sourcemaps';
import json from '@rollup/plugin-json';
import { terser } from 'rollup-plugin-terser';
import path from 'path';
const pkg = require('./package.json');
@@ -27,8 +28,9 @@ const buildCjsPackage = ({ env }) => {
'@grafana/schema', // Load from host
],
plugins: [
resolve(),
json({
include: ['../../node_modules/moment-timezone/data/packed/latest.json'],
include: [path.relative('.', require.resolve('moment-timezone/data/packed/latest.json'))], // absolute path throws an error for whatever reason
}),
commonjs({
include: /node_modules/,