5bedcc7bd7
* build(frontend): enable custom condition for resolving source files during dev and build * feat(packages): apply conditional name to export properties * chore(packages): add standard exports to flamegraph and prometheus * chore(packages): resolve main, module, types to built files * build(packages): clean up prepare-npm-package for custom condition changes * refactor(packages): reduce repetition in conditional exports * build(storybook): add @grafana-app/source to conditionNames * test(frontend): add grafana-app/source customCondition for jest tests * refactor(frontend): remove nested package import paths * chore(jest): use customExportConditions for source files and browser * chore(i18n): use src for ./eslint-plugin export * chore(packages): set packages tsconfigs to moduleResolution bundler * chore(packages): fix rollup builds * build(packages): build cjs as multiple files * chore(sql): reference MonitoringLogger for moduleresolution bundler to pass typecheck * chore(ui): add type refs for moduleresolution bundler to pass typecheck * feat(schema): add exports for cleaner import paths * refactor(frontend): clean up schema paths to point to exports instead of nested file paths * build(storybook): hack the builder-manager for custom conditions to resolve * build(decoupled-plugins): fix broken builds due to missing conditionNames * chore(e2e): pass condition to playwright to resolve local packages * build(frontend): fix failing build * chore(select): fix typings * style(frontend): clean up eslint suppressions * chore(packages): fix type errors due to incorrect tsconfig settings * build(generate-apis): use swc with ts-node and moduleResolution bundler * chore(cypress): add conditionNames to resolve monorepo packages * build(npm): update prepare to work with latest exports changes * build(packages): fix prepare-npm-package script * fix(e2e-selectors): update debugoverlay for data-testid change * build(packages): stop editing package.json at pack n publish time * rerun ci * chore(api-clients): use moduleResolution: bundler for customConditions support * chore(api-clients): fix generation * build(packages): remove aliasing exports, remove exports with only customConditions * Revert "refactor(frontend): clean up schema paths to point to exports instead of nested file paths" This reverts commit 7949b6ea0e60e51989d2a8149b7a24647cd68916. * revert(schema): remove exports from package so builds work * build(api-clients): fix up api-clients exports and rollup config * build(api-clients): Update generated package exports for api clients * build(schema): add overrides to cjsOutput and esmOutput so built directory structure is correct * fix(packages): use rootDirs to prevent types/src directories in built d.ts file paths * build(packages): prevent empty exports added to package.json during pack * docs(packages): update readme with custom conditions information --------- Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
119 lines
3.5 KiB
JSON
119 lines
3.5 KiB
JSON
{
|
|
"author": "Grafana Labs",
|
|
"license": "AGPL-3.0-only",
|
|
"name": "@grafana/prometheus",
|
|
"version": "12.4.0-pre",
|
|
"description": "Grafana Prometheus Library",
|
|
"keywords": [
|
|
"typescript",
|
|
"prometheus",
|
|
"grafana"
|
|
],
|
|
"sideEffects": false,
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "http://github.com/grafana/grafana.git",
|
|
"directory": "packages/grafana-prometheus"
|
|
},
|
|
"main": "./dist/cjs/index.cjs",
|
|
"module": "./dist/esm/index.mjs",
|
|
"types": "./dist/types/index.d.ts",
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"@grafana-app/source": "./src/index.ts",
|
|
"types": "./dist/types/index.d.ts",
|
|
"import": "./dist/esm/index.mjs",
|
|
"require": "./dist/cjs/index.cjs"
|
|
}
|
|
},
|
|
"files": [
|
|
"./dist",
|
|
"./README.md",
|
|
"./CHANGELOG.md",
|
|
"./LICENSE_AGPL"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc -p ./tsconfig.build.json && rollup -c rollup.config.ts --configPlugin esbuild",
|
|
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
|
|
"clean": "rimraf ./dist ./compiled ./package.tgz",
|
|
"i18n-extract": "i18next-cli extract --sync-primary",
|
|
"typecheck": "tsc --emitDeclarationOnly false --noEmit",
|
|
"prepack": "cp package.json package.json.bak && node ../../scripts/prepare-npm-package.js",
|
|
"postpack": "mv package.json.bak package.json"
|
|
},
|
|
"dependencies": {
|
|
"@emotion/css": "11.13.5",
|
|
"@floating-ui/react": "0.27.16",
|
|
"@grafana/data": "12.4.0-pre",
|
|
"@grafana/e2e-selectors": "12.4.0-pre",
|
|
"@grafana/i18n": "12.4.0-pre",
|
|
"@grafana/plugin-ui": "^0.11.0",
|
|
"@grafana/runtime": "12.4.0-pre",
|
|
"@grafana/schema": "12.4.0-pre",
|
|
"@grafana/ui": "12.4.0-pre",
|
|
"@hello-pangea/dnd": "18.0.1",
|
|
"@leeoniya/ufuzzy": "1.0.19",
|
|
"@lezer/common": "1.3.0",
|
|
"@lezer/highlight": "1.2.3",
|
|
"@lezer/lr": "1.4.3",
|
|
"@prometheus-io/lezer-promql": "0.307.3",
|
|
"@reduxjs/toolkit": "2.10.1",
|
|
"@types/debounce-promise": "3.1.9",
|
|
"@types/lodash": "4.17.20",
|
|
"@types/react": "18.3.18",
|
|
"@types/react-dom": "18.3.5",
|
|
"@types/react-highlight-words": "0.20.0",
|
|
"@types/react-window": "1.8.8",
|
|
"@types/semver": "7.7.1",
|
|
"@types/uuid": "10.0.0",
|
|
"debounce-promise": "3.1.2",
|
|
"lodash": "4.17.21",
|
|
"moment": "2.30.1",
|
|
"moment-timezone": "0.5.47",
|
|
"monaco-editor": "0.34.1",
|
|
"monaco-promql": "1.8.0",
|
|
"pluralize": "8.0.0",
|
|
"prismjs": "1.30.0",
|
|
"react-highlight-words": "0.21.0",
|
|
"react-use": "17.6.0",
|
|
"react-window": "1.8.11",
|
|
"rxjs": "7.8.2",
|
|
"semver": "7.7.3",
|
|
"uuid": "11.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@rollup/plugin-dynamic-import-vars": "2.1.5",
|
|
"@rollup/plugin-image": "3.0.3",
|
|
"@rollup/plugin-json": "6.1.0",
|
|
"@rollup/plugin-node-resolve": "16.0.1",
|
|
"@testing-library/jest-dom": "6.6.4",
|
|
"@testing-library/react": "16.3.0",
|
|
"@testing-library/user-event": "14.6.1",
|
|
"@types/jest": "29.5.14",
|
|
"@types/node": "24.10.1",
|
|
"@types/pluralize": "^0.0.33",
|
|
"@types/prismjs": "1.26.5",
|
|
"esbuild": "0.25.8",
|
|
"i18next-cli": "^1.24.22",
|
|
"jest": "29.7.0",
|
|
"jest-environment-jsdom": "29.7.0",
|
|
"react": "18.3.1",
|
|
"react-dom": "18.3.1",
|
|
"react-select-event": "5.5.1",
|
|
"rimraf": "6.0.1",
|
|
"rollup": "^4.22.4",
|
|
"rollup-plugin-esbuild": "6.2.1",
|
|
"rollup-plugin-node-externals": "^8.0.0",
|
|
"testing-library-selector": "0.3.1",
|
|
"typescript": "5.9.2"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^18.0.0",
|
|
"react-dom": "^18.0.0"
|
|
}
|
|
}
|