mirror of
https://github.com/grafana/grafana.git
synced 2025-07-28 21:52:23 +08:00

* chore(packages): remove rollup dts plugin * build(packages): add rollup copy plugin settings to copy ts declarations to esm and cjs builds * build(packages): remove copy settings as result doesnt pass attw cli checks * build(packages): use single types output in dist/types directory * ci(packages): update prepare and validate scripts for single type builds * fix(grafana-schema): copy raw types to dist/esm directory for grafana/scenes support
20 lines
456 B
TypeScript
20 lines
456 B
TypeScript
import { createRequire } from 'node:module';
|
|
|
|
import { cjsOutput, entryPoint, esmOutput, plugins } from '../rollup.config.parts';
|
|
|
|
const rq = createRequire(import.meta.url);
|
|
const pkg = rq('./package.json');
|
|
|
|
export default [
|
|
{
|
|
input: entryPoint,
|
|
plugins,
|
|
output: [cjsOutput(pkg), esmOutput(pkg, 'grafana-runtime')],
|
|
},
|
|
{
|
|
input: 'src/unstable.ts',
|
|
plugins,
|
|
output: [cjsOutput(pkg), esmOutput(pkg, 'grafana-runtime')],
|
|
},
|
|
];
|