kibana/x-pack/test/tsconfig.json
Alejandro Fernández Haro 11b750b10a
Minimize shared-common everywhere (#188606)
## Summary


![8xfggo](https://github.com/user-attachments/assets/f3d9312f-2ad3-4fa2-9daf-01e2b1ad6cac)

At the moment, our package generator creates all packages with the type
`shared-common`. This means that we cannot enforce boundaries between
server-side-only code and the browser, and vice-versa.

- [x] I started fixing `packages/core/*`
- [x] It took me to fixing `src/core/` type to be identified by the
`plugin` pattern (`public` and `server` directories) vs. a package
(either common, or single-scoped)
- [x] Unsurprisingly, this extended to packages importing core packages
hitting the boundaries eslint rules. And other packages importing the
latter.
- [x] Also a bunch of `common` logic that shouldn't be so _common_ 🙃 

### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-07-29 12:47:46 -06:00

181 lines
5.7 KiB
JSON

{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": ["node", "@kbn/ambient-ftr-types"],
// there is still a decent amount of JS in this plugin and we are taking
// advantage of the fact that TS doesn't know the types of that code and
// gives us `any`. Once that code is converted to .ts we can remove this
// and allow TS to infer types from any JS file imported.
"allowJs": false
},
"include": [
"**/*",
"./api_integration/apis/logstash/pipeline/fixtures/*.json",
"./api_integration/apis/logstash/pipelines/fixtures/*.json",
"./api_integration/apis/telemetry/fixtures/*.json",
"./monitoring_api_integration/fixtures/**/*.json",
"../../typings/**/*",
"../../packages/kbn-test/types/ftr_globals/**/*"
],
"exclude": [
"security_solution_cypress/cypress/**/*",
"target/**/*",
"*/plugins/**/*",
"*/packages/**/*",
"*/*/packages/**/*",
"security_solution_api_integration/**/*"
],
"kbn_references": [
"@kbn/test-suites-src",
"@kbn/core",
"@kbn/data-plugin",
"@kbn/kibana-usage-collection-plugin",
"@kbn/share-plugin",
"@kbn/telemetry-collection-manager-plugin",
"@kbn/telemetry-plugin",
"@kbn/actions-plugin",
"@kbn/alerting-plugin",
"@kbn/apm-plugin",
"@kbn/cases-plugin",
"@kbn/fleet-plugin",
"@kbn/global-search-plugin",
"@kbn/features-plugin",
"@kbn/encrypted-saved-objects-plugin",
"@kbn/event-log-plugin",
"@kbn/features-plugin",
"@kbn/global-search-plugin",
"@kbn/index-management-plugin",
"@kbn/infra-plugin",
"@kbn/licensing-plugin",
"@kbn/ml-plugin",
"@kbn/monitoring-plugin",
"@kbn/observability-plugin",
"@kbn/security-plugin",
"@kbn/security-solution-plugin",
"@kbn/snapshot-restore-plugin",
"@kbn/spaces-plugin",
"@kbn/task-manager-plugin",
"@kbn/telemetry-collection-xpack-plugin",
"@kbn/transform-plugin",
"@kbn/triggers-actions-ui-plugin",
"@kbn/upgrade-assistant-plugin",
"@kbn/remote-clusters-plugin",
"@kbn/cross-cluster-replication-plugin",
"@kbn/synthetics-plugin",
"@kbn/global-search-test-plugin",
"@kbn/test",
"@kbn/repo-info",
"@kbn/tooling-log",
"@kbn/dev-utils",
"@kbn/dev-proc-runner",
"@kbn/ftr-common-functional-services",
"@kbn/securitysolution-list-constants",
"@kbn/expect",
"@kbn/dev-cli-errors",
"@kbn/ci-stats-reporter",
"@kbn/std",
"@kbn/apm-synthtrace",
"@kbn/core-saved-objects-base-server-internal",
"@kbn/rule-data-utils",
"@kbn/maps-plugin",
"@kbn/test-subj-selector",
"@kbn/rison",
"@kbn/reporting-plugin",
"@kbn/aiops-plugin",
"@kbn/ml-agg-utils",
"@kbn/logging",
"@kbn/utility-types",
"@kbn/data-views-plugin",
"@kbn/datemath",
"@kbn/safer-lodash-set",
"@kbn/es-archiver",
"@kbn/config-schema",
"@kbn/kubernetes-security-plugin",
"@kbn/es-query",
"@kbn/session-view-plugin",
"@kbn/ml-is-populated-object",
"@kbn/ml-string-hash",
"@kbn/data-visualizer-plugin",
"@kbn/visualizations-plugin",
"@kbn/rule-registry-plugin",
"@kbn/controls-plugin",
"@kbn/core-saved-objects-server",
"@kbn/core-provider-plugin",
"@kbn/user-profile-components",
"@kbn/apm-synthtrace-client",
"@kbn/utils",
"@kbn/journeys",
"@kbn/stdio-dev-helpers",
"@kbn/alerting-api-integration-helpers",
"@kbn/cloud-security-posture-plugin",
"@kbn/cloud-integration-saml-provider-plugin",
"@kbn/security-api-integration-helpers",
"@kbn/alerts-as-data-utils",
"@kbn/discover-plugin",
"@kbn/files-plugin",
"@kbn/shared-ux-file-types",
"@kbn/guided-onboarding-plugin",
"@kbn/field-formats-plugin",
"@kbn/ml-anomaly-utils",
"@kbn/ml-data-frame-analytics-utils",
"@kbn/data-forge",
"@kbn/observability-shared-plugin",
"@kbn/maps-vector-tile-utils",
"@kbn/server-route-repository",
"@kbn/core-http-common",
"@kbn/lens-plugin",
"@kbn/logs-shared-plugin",
"@kbn/telemetry-tools",
"@kbn/profiling-plugin",
"@kbn/observability-onboarding-plugin",
"@kbn/bfetch-plugin",
"@kbn/uptime-plugin",
"@kbn/ml-category-validator",
"@kbn/observability-ai-assistant-plugin",
"@kbn/stack-connectors-plugin",
"@kbn/stack-alerts-plugin",
"@kbn/apm-data-access-plugin",
"@kbn/coloring",
"@kbn/profiling-utils",
"@kbn/profiling-data-access-plugin",
"@kbn/coloring",
"@kbn/es",
"@kbn/metrics-data-access-plugin",
"@kbn/dataset-quality-plugin",
"@kbn/reporting-export-types-csv-common",
"@kbn/reporting-export-types-pdf-common",
"@kbn/reporting-export-types-png-common",
"@kbn/reporting-common",
"@kbn/observability-logs-explorer-plugin",
"@kbn/io-ts-utils",
"@kbn/logs-explorer-plugin",
"@kbn/security-plugin-types-common",
"@kbn/slo-schema",
"@kbn/typed-react-router-config",
"@kbn/ftr-common-functional-ui-services",
"@kbn/infra-forge",
"@kbn/slo-plugin",
"@kbn/aiops-test-utils",
"@kbn/observability-ai-assistant-app-plugin",
"@kbn/aiops-log-rate-analysis",
"@kbn/apm-data-view",
"@kbn/core-saved-objects-api-server",
"@kbn/search-types",
"@kbn/alerting-comparators",
"@kbn/alerting-state-types",
"@kbn/reporting-server",
"@kbn/data-quality-plugin",
"@kbn/securitysolution-io-ts-list-types",
"@kbn/ml-trained-models-utils",
"@kbn/openapi-common",
"@kbn/securitysolution-lists-common",
"@kbn/securitysolution-exceptions-common",
"@kbn/securitysolution-endpoint-exceptions-common",
"@kbn/entityManager-plugin",
"@kbn/osquery-plugin",
"@kbn/entities-schema",
"@kbn/actions-simulators-plugin",
"@kbn/cases-api-integration-test-plugin"
]
}