-
Notifications
You must be signed in to change notification settings - Fork 3
tsconfig: add merged internal path aliases for myWorld-client/react #60
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
base: dev
Are you sure you want to change the base?
Conversation
|
Is the idea with the |
No, we can have several releases of the template before 7.4 is released. Can we keep the line being removed to keep compatibility with pre 7.4 versions? Expectation is that people should be able to continue using (and pull&merge) the template with 7.2 or 7.3 even after 7.4 is released... |
luiscamachopt
left a comment
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.
I think we need to discuss options for this better
| "@internal/hooks": ["../core/client/hooks"], | ||
| "@internal/uiComponents/react": ["../core/client/uiComponents/react"] |
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.
This looks quite awkward, sounds like we should reorganise the code in core for 7.4 to a more standard pattern(keeping existing imports working) and get more straightforward configuration?
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.
A single entry point to match the single import path would make sense, I think. Maybe a myWorld-react.js like we have myWorld-client.js?
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.
In 7.4, I think we need to keep myWorld-client.js for 7.4. I am curious about the change added to 7.4 that would require this change.
We can have both. I'll add a comment to |
mstrong98
left a comment
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.
Thanks Dan, I think we need to revisit the changes made in 7.4 for this.
This PR adds the
tsconfig.core.jsonchanges from https://github.com/IQGeo/myworld-product-core/pull/2060.The
myWorld-client/reactimport alias is comprised of two separately exported modules from core:core/client/hooksandcore/client/uiComponents/react.compilerOptions.pathsdoesn't support merging two separate modules, so an ambient module declaration was added instead. This declaration references@internal/hooksand@internal/uiComponents/react, both of which need to be aliased in the consuming project.