mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 19:32:51 +08:00

* build(packages): add extendable pieces of rollup config * build(packages): rewrite rollup configs to make use of extendable parts
17 lines
456 B
TypeScript
17 lines
456 B
TypeScript
import image from '@rollup/plugin-image';
|
|
import { createRequire } from 'node:module';
|
|
|
|
import { cjsOutput, entryPoint, esmOutput, plugins, tsDeclarationOutput } from '../rollup.config.parts';
|
|
|
|
const rq = createRequire(import.meta.url);
|
|
const pkg = rq('./package.json');
|
|
|
|
export default [
|
|
{
|
|
input: entryPoint,
|
|
plugins: [...plugins, image()],
|
|
output: [cjsOutput(pkg), esmOutput(pkg, 'grafana-prometheus')],
|
|
},
|
|
tsDeclarationOutput(pkg),
|
|
];
|