mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
4179f94959
* fix(grafana-e2e): make sure cypress can find config file * chore(yarn): refresh lock file
30 lines
710 B
TypeScript
30 lines
710 B
TypeScript
import resolve from '@rollup/plugin-node-resolve';
|
|
import path from 'path';
|
|
import dts from 'rollup-plugin-dts';
|
|
import esbuild from 'rollup-plugin-esbuild';
|
|
import { externals } from 'rollup-plugin-node-externals';
|
|
|
|
const pkg = require('./package.json');
|
|
|
|
export default [
|
|
{
|
|
input: 'src/index.ts',
|
|
plugins: [externals({ deps: true, packagePath: './package.json' }), resolve(), esbuild({ target: 'node16' })],
|
|
output: [
|
|
{
|
|
format: 'cjs',
|
|
sourcemap: true,
|
|
dir: path.dirname(pkg.publishConfig.main),
|
|
},
|
|
],
|
|
},
|
|
{
|
|
input: './compiled/index.d.ts',
|
|
plugins: [dts()],
|
|
output: {
|
|
file: pkg.publishConfig.types,
|
|
format: 'es',
|
|
},
|
|
},
|
|
];
|