Skip to content

dist/eui_charts_theme should be .js#2294

Merged
thompsongl merged 3 commits intoelastic:masterfrom
thompsongl:hotfix-charts-compile
Sep 6, 2019
Merged

dist/eui_charts_theme should be .js#2294
thompsongl merged 3 commits intoelastic:masterfrom
thompsongl:hotfix-charts-compile

Conversation

@thompsongl
Copy link
Copy Markdown
Contributor

@thompsongl thompsongl commented Sep 5, 2019

Summary

Extra .ts snuck in before the merge.

Checklist

- [ ] Checked in dark mode
- [ ] Checked in mobile
- [ ] Checked in IE11 and Firefox
- [ ] Props have proper autodocs
- [ ] Added documentation examples
- [ ] Added or updated jest tests
- [ ] Checked for breaking changes and labeled appropriately
- [ ] Checked for accessibility including keyboard-only and screenreader modes

  • A changelog entry exists and is marked appropriately

Copy link
Copy Markdown
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

It's suppose to convert a .ts to .js? But how can it then be consumed as a TS file by Kibana?

@thompsongl
Copy link
Copy Markdown
Contributor Author

I think we'll have to provide a .d.ts file, which I didn't think about until just now. // cc @chandlerprall

@thompsongl
Copy link
Copy Markdown
Contributor Author

Ok. It'll generate a .d.ts file now during the build.

@cchaos
Copy link
Copy Markdown
Contributor

cchaos commented Sep 6, 2019

Most likely unrelated, but my IDE complains about not finding the file, even though it compiles correctly with the theme.

Screen Shot 2019-09-06 at 12 36 20 PM

Copy link
Copy Markdown
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Thanks @thompsongl !

Copy link
Copy Markdown
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

Changes LGTM; pulled & built locally, pulled that build into an empty typescript project and confirmed could import with import { EUI_CHARTS_THEME_DARK } from '@elastic/eui/dist/eui_charts_theme'; , compile the typescript application, and execute with node

@thompsongl thompsongl merged commit 61d4aeb into elastic:master Sep 6, 2019
thompsongl added a commit to thompsongl/eui that referenced this pull request Sep 10, 2019
* output should be js

* generate .d.ts file

* CL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants