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

Bug 1779793 - Fix using Glean.js in Typescript code targetting web pages #1415

Merged
merged 4 commits into from
Jul 18, 2022

Conversation

Dexterp37
Copy link
Contributor

We were not including the web platform types in the final package. This fixes the problem by changing the typescript configuration to include it and additionally (bonus) adds a build command to skip building QT bindings (very handy for local development) and updates the dev docs.

Pull Request checklist

  • Quality: Make sure this PR builds and runs cleanly.
    • Inside the glean/ folder, run:
      • npm run test Runs all tests
      • npm run lint Runs all linters
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry to CHANGELOG.md or an explanation of why it does not need one
  • Documentation: This PR includes documentation changes, an explanation of why it does not need that or a follow-up bug has been filed to do that work

Building the QT bindings is quite complex and requires
a perfectly configured environment, in addition to
taking a lot of time. This introduces a command to quickly
trigger building locally by skipping the QT build
@Dexterp37 Dexterp37 requested a review from badboy July 18, 2022 09:42
@Dexterp37 Dexterp37 self-assigned this Jul 18, 2022
@Dexterp37
Copy link
Contributor Author

I tested this locally with the code provided by the MDN folks.

@Dexterp37 Dexterp37 changed the title Fix using Glean.js in Typescript code targetting web pages Bug 1779793 - Fix using Glean.js in Typescript code targetting web pages Jul 18, 2022
@Dexterp37 Dexterp37 merged commit 874e49d into mozilla:main Jul 18, 2022
@Dexterp37 Dexterp37 deleted the fix-ts-web branch July 18, 2022 09:54
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.

2 participants