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

BUGFIX: Colocate react-ui-components esm-build declarations and sources #3336

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

Sebobo
Copy link
Member

@Sebobo Sebobo commented Jan 16, 2023

The relative import in the selectbox component forced typescript to create a different file structure for the source files than for the declaration files causing issues with importing the esm build.

By using the package style import the folder structure is correct again and by defining the rootDir in the tsconfig file an error will be thrown if a relative include outside of the components package is used.

Resolves: #3329

@mhsdesign
Copy link
Member

Fine by reading ;)

@grebaldi grebaldi linked an issue Jan 17, 2023 that may be closed by this pull request
@grebaldi grebaldi added Bug Label to mark the change as bugfix Extensibility 7.3 labels Jan 17, 2023
Copy link
Contributor

@grebaldi grebaldi left a comment

Choose a reason for hiding this comment

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

Hi @Sebobo,

I was able to reproduce the issue and can confirm that your change fixes it. There's a small remaining issue though (see code comment).

The relative import in the selectbox component forced
typescript to create a different file structure for the
source files than for the declaration files causing issues with importing the esm build.

By using the package style import the folder structure is correct again and by defining the rootDir in the tsconfig file an error will be thrown if a relative include outside of the components package is used.

Resolves: #3329
@Sebobo Sebobo merged commit 6c755f5 into 7.3 Jan 17, 2023
@Sebobo Sebobo deleted the bugfix/esm-build branch January 17, 2023 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7.3 Bug Label to mark the change as bugfix Extensibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ESM build of react-ui-components source files in wrong place
3 participants