-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(NA): enable preserve symlinks for ts without breaking packages development #95433
chore(NA): enable preserve symlinks for ts without breaking packages development #95433
Conversation
…ymlinks-for-ts-without-breaking-packages
9f12499
to
1c3fcc9
Compare
…ymlinks-for-ts-without-breaking-packages
…upstream - refactored
7a56b6c
to
9268491
Compare
…sources on kbn-test package
…ymlinks-for-ts-without-breaking-packages
Thanks @spalger for the help you gave here to overcome the type clashes on |
Pinging @elastic/kibana-operations (Team:Operations) |
It works for me now! I think I know what the issue is but it's unrelated. Opening up another PR |
I don't want to block this PR on all the codeowners reviews triggered by this change. If anyone has any issues with it, we can address but we're mostly responsible for the files changed here. @spalger if you sign off I suggest we go ahead and merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
APM related changes looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Security changes (// @ts-expect-error
in integration tests) LGTM, thanks for clarifying in comments above!
…ymlinks-for-ts-without-breaking-packages
…d kbn-telemetry-tools
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, things seem to be stable and I'm not seeing any major issues. I'll work on a followup to deal with a minor issue I'm seeing #95849
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
Unknown metric groups@kbn/ui-shared-deps asset size
History
To update your PR or re-run it, just comment with: |
💔 Backport failed❌ 7.x: Commit could not be cherrypicked due to conflicts To backport manually run: |
1 similar comment
💔 Backport failed❌ 7.x: Commit could not be cherrypicked due to conflicts To backport manually run: |
…development (elastic#95433) * chore(NA): move elastic-datemath into a ts package * chore(NA): finish elastic-datemath * chore(NA): finish elastic-datemath * chore(NA): source folder for elastic-datemath * chore(NA): add source-maps ace, analytics, apm-config-loader and apm-utils packages * chore(NA): add sourcemaps to packages on typescript * chore(NA): move test fixtures within source * chore(NA): correct exclusions on packages * chore(NA): correct package.json on all packages * chore(NA): correct package.json on all packages * chore(NA): complete kbn pm * chore(NA): default export on elastic-datemath * chore(NA): include logs on kbn-logging * chore(NA): update bundle ref module to last code used in the webpack upstream * chore(NA): update bundle ref module to last code used in the webpack upstream - refactored * chore(NA): remove override method for exportsArgument * fix(NA): typechecking problems by use @internal at javascript import sources on kbn-test package * fix(NA): typescript projects check * fix(NA): run optimizer integration tests from source * chore(NA): fix usage from target for kbn optimizer * chore(NA): path on tsconfig * chore(NA): move tsignore into ts-expect-error * chore(NA): include souce maps on kbn cli dev * chore(NA): include souce maps on kbn-crypto, kbn-server-http-tools and kbn-telemetry-tools * chore(NA): add issue links into the ts-expect-error comments # Conflicts: # packages/elastic-datemath/README.md # packages/kbn-optimizer/src/integration_tests/basic_optimization.test.ts
…development (#95433) (#95884) * chore(NA): move elastic-datemath into a ts package * chore(NA): finish elastic-datemath * chore(NA): finish elastic-datemath * chore(NA): source folder for elastic-datemath * chore(NA): add source-maps ace, analytics, apm-config-loader and apm-utils packages * chore(NA): add sourcemaps to packages on typescript * chore(NA): move test fixtures within source * chore(NA): correct exclusions on packages * chore(NA): correct package.json on all packages * chore(NA): correct package.json on all packages * chore(NA): complete kbn pm * chore(NA): default export on elastic-datemath * chore(NA): include logs on kbn-logging * chore(NA): update bundle ref module to last code used in the webpack upstream * chore(NA): update bundle ref module to last code used in the webpack upstream - refactored * chore(NA): remove override method for exportsArgument * fix(NA): typechecking problems by use @internal at javascript import sources on kbn-test package * fix(NA): typescript projects check * fix(NA): run optimizer integration tests from source * chore(NA): fix usage from target for kbn optimizer * chore(NA): path on tsconfig * chore(NA): move tsignore into ts-expect-error * chore(NA): include souce maps on kbn cli dev * chore(NA): include souce maps on kbn-crypto, kbn-server-http-tools and kbn-telemetry-tools * chore(NA): add issue links into the ts-expect-error comments # Conflicts: # packages/elastic-datemath/README.md # packages/kbn-optimizer/src/integration_tests/basic_optimization.test.ts
One step forward on #69706
We need to enable the
preserveSymlinks
option on the typescript config in order to support the consumption from packages built by bazel. However we discovered that broke the development of packages built in typescript as we were no longer able to click and follow requires into the source. By built the sourcemaps and correctly configuresourceRoot
we were able to fix the behaviour. I've also applied the same standards into all typescript packages.Some packages were left out of this work because they are not being required often and a migration into typescript was needed, or because they do not change frequently. Those are: