Skip to content
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

refactor(build): Pre-compile files imported from data folder #7896

Merged
merged 13 commits into from
Dec 8, 2020

Conversation

zharinov
Copy link
Collaborator

@zharinov zharinov commented Dec 7, 2020

Changes:

According to microsoft/TypeScript#10939, it would be tricky to just import example from 'example.txt''.
Thus, we're using data/ folder for this.
After this PR, we pre-compile files from this folder and import it as JavaScript Map.
Generated file example

Context:

Ref: #7157

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added unit tests, or
  • Unit tests + ran on a real repository

@rarkins rarkins requested a review from viceice December 7, 2020 09:23
tools/generate-imports.ts Outdated Show resolved Hide resolved
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

Looks like it need coverage fixes now 🙃

tools/generate-imports.ts Outdated Show resolved Hide resolved
@zharinov
Copy link
Collaborator Author

zharinov commented Dec 7, 2020

Ha, didn't expect it will help to get rid of dependency I found problematic some time ago

viceice
viceice previously approved these changes Dec 7, 2020
yarn.lock Outdated
Comment on lines 7812 to 7807
lodash._bindcallback "*"
lodash._cacheindexof "*"
lodash._createcache "*"
lodash._getnative "*"
Copy link
Member

Choose a reason for hiding this comment

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

haha, renovate yarn patch strikes again 😛

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was wrong about find-up

@viceice
Copy link
Member

viceice commented Dec 7, 2020

🤦‍♂️ nuget needs find-up
image

@rarkins rarkins merged commit 31c7d8a into renovatebot:master Dec 8, 2020
@rarkins rarkins deleted the refactor/data-files-codegen branch December 8, 2020 13:07
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 23.97.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants