mirror of
https://github.com/elastic/kibana.git
synced 2025-04-19 15:35:00 -04:00
## Summary Stop emitting any `.js` files during typechecking. We only depend on the declarations, not the emitted, compiled javascript files. An added benefit, is making some bad import errors more obvious. We'll no longer try to build javascript files in place if a poor import/require is made, rather the error of importing outside projects (in the forest of a bunch of errors possibly) will be visible in the typescript logs: ``` # instead of: proc [tsc] error TS5055: Cannot write file '/opt/buildkite-agent/builds/bk-agent-prod-gcp-1741789017236110254/elastic/kibana-pull-request/kibana/src/platform/packages/shared/kbn-babel-register/cache/no_cache_cache.js' because it would overwrite input file. # we'll see: ... several others like this proc [tsc] src/platform/packages/shared/kbn-grok-ui/scripts/generate_patterns.js:10:9 - error TS6307: File '/Users/alex/Git/elastic-kibana/src/setup_node_env/index.js' is not listed within the file list of project '/Users/alex/Git/elastic-kibana/src/platform/packages/shared/kbn-grok-ui/tsconfig.type_check.json'. Projects must list all files or use an 'include' pattern. proc [tsc] proc [tsc] 10 require('../../../../../setup_node_env'); ... several others like this ``` |
||
---|---|---|
.. | ||
jest.config.js | ||
kibana.jsonc | ||
package.json | ||
README.md | ||
root_refs_config.ts | ||
run_type_check_cli.ts | ||
tsconfig.json |
@kbn/ts-type-check-cli
Empty package generated by @kbn/generate