mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Switch yarn 2 to plug-n-play strategy (#40300)
This commit is contained in:
@@ -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/,
|
||||
|
||||
Reference in New Issue
Block a user