Skip to content

[build_ts_refs] automatically update tsconfig.refs.json#107804

Closed
spalger wants to merge 4 commits intoelastic:masterfrom
spalger:implement/root-refs-config-update
Closed

[build_ts_refs] automatically update tsconfig.refs.json#107804
spalger wants to merge 4 commits intoelastic:masterfrom
spalger:implement/root-refs-config-update

Conversation

@spalger
Copy link
Copy Markdown
Contributor

@spalger spalger commented Aug 5, 2021

While debugging some issues with @kime I noticed that a project wasn't in the tsconfig.refs.json directory. This prevents the ts_build_refs script from knowing it is built by TS, and could lead to some of the caching inconsistencies we've been seeing. To prevent this from being an issue I think we should automatically generate that root refs config file using the full TS projects list we have and use for type checking all the different ts projects. This collection of projects is exhaustive and every TS file in the repo is validated to belong to exactly one project.

@spalger spalger added Team:Operations Kibana-Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.15.0 v7.14.1 labels Aug 5, 2021
@spalger spalger marked this pull request as ready for review August 5, 2021 21:19
@spalger spalger requested review from a team as code owners August 5, 2021 21:19
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

Comment on lines +34 to +35
let I18nContext: I18nStart['Context'] | undefined;
let isLoaded = false;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes were necessary because this project wasn't being built in the composite build previously and private properties on class expressions aren't compatible. Functionality is the same but avoid the type errors

Copy link
Copy Markdown
Contributor

@jbudz jbudz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested warnings (node scripts/build_ts_refs.js --validate-root-refs-config) and writes (node scripts/build_ts_refs.js)

LGTM

@spalger
Copy link
Copy Markdown
Contributor Author

spalger commented Aug 9, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

merge conflict between base and head

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
inputControlVis 83.3KB 83.2KB -125.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
inputControlVis 9.8KB 9.7KB -27.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@spalger
Copy link
Copy Markdown
Contributor Author

spalger commented Aug 11, 2021

Handled by #107981

@spalger spalger closed this Aug 11, 2021
@spalger spalger deleted the implement/root-refs-config-update branch August 11, 2021 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v7.14.1 v7.15.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants