prometheus/web/ui/module/lezer-promql/rollup.config.js
Augustin Husson 043a2954f8
UI: stabilize dependencies and environment (#10517)
* create lezer-promql module + move codemirror to a pure esm module + unified dependencies

Signed-off-by: Augustin Husson <[email protected]>

* ignore test utils file and remove the type "module" in package.json

Signed-off-by: Augustin Husson <[email protected]>

* use jest to run the lezer-promql test

Signed-off-by: Augustin Husson <[email protected]>

* give an automatic way to update the ui dependencies

Signed-off-by: Augustin Husson <[email protected]>

* update all dependencies using make update-npm-deps

Signed-off-by: Augustin Husson <[email protected]>

* fix react-app test

Signed-off-by: Augustin Husson <[email protected]>

* remove generated file

Signed-off-by: Augustin Husson <[email protected]>

* remove unnecessary backslash in script

Signed-off-by: Augustin Husson <[email protected]>

* fix reviews

Signed-off-by: Augustin Husson <[email protected]>

* rewording

Signed-off-by: Augustin Husson <[email protected]>

* use npx to run lezer-generator

Signed-off-by: Augustin Husson <[email protected]>
2022-04-05 11:49:22 +02:00

17 lines
310 B
JavaScript

import { nodeResolve } from "@rollup/plugin-node-resolve"
export default {
input: "./src/parser.js",
output: [{
format: "cjs",
file: "./dist/index.cjs"
}, {
format: "es",
file: "./dist/index.es.js"
}],
external(id) { return !/^[.\/]/.test(id) },
plugins: [
nodeResolve()
]
}