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

[MOB-12026] Fix TS Compile Error #931

Merged
merged 3 commits into from
Feb 27, 2023
Merged

[MOB-12026] Fix TS Compile Error #931

merged 3 commits into from
Feb 27, 2023

Conversation

DavidMina96
Copy link
Contributor

@DavidMina96 DavidMina96 commented Feb 27, 2023

Description of the change

Problem
A TS compile error started to arise on v11.9.0 due to the dist dir having a different structure than the entry points provided in package.json. In particular, adding the test dir in tsconfig.json include property is the root cause of the change. This was done during the unit tests migration to TS to resolve an error related to the declaration file for module xhr2, which is inside the test dir.

Solution
Remove the test dir from being included and add a separate tsconfig.test.json for the tests configuration, which would preserve the old dist structure and provide the required files for the tests to run.

Note:
Changelog formatting according to the new guidelines will be done entirely in a separate PR.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Issue links go here

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests

Code review

  • This pull request has a descriptive title and information useful to a reviewer
  • Issue from task tracker has a link to this pull request

@DavidMina96 DavidMina96 self-assigned this Feb 27, 2023
@DavidMina96 DavidMina96 linked an issue Feb 27, 2023 that may be closed by this pull request
Copy link
Contributor

@a7medev a7medev left a comment

Choose a reason for hiding this comment

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

LGTM 👏

tsconfig.json Outdated Show resolved Hide resolved
@DavidMina96 DavidMina96 merged commit c378fe0 into dev Feb 27, 2023
@DavidMina96 DavidMina96 deleted the fix/ts-compile-error branch February 27, 2023 19:37
HeshamMegid pushed a commit that referenced this pull request Mar 1, 2023
Remove the test dir from being included in tsconfig.json and add a separate tsconfig.test.json for the tests configuration, preserving the old dist structure and providing the required files for the tests to run.
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.

[Bug] Project dist entry points missing/unaligned since 11.9.0
3 participants