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

build: disable TypeScript importHelpers #886

Merged
merged 1 commit into from
Feb 6, 2025
Merged

Conversation

emersion
Copy link
Member

@emersion emersion commented Feb 6, 2025

importHelpers requires tslib to be added as a dependency of all packages. This isn't the case currently and causes breakage:

[vite]: Rollup failed to resolve import "/home/runner/work/osrd-ui/osrd-ui/node_modules/tslib/tslib.es6.js" from "/app/node_modules/@osrd-project/ui-core/dist/index.esm.js".

https://github.com/OpenRailAssociation/osrd/actions/runs/13162122589/job/36733250608?pr=10697#step:6:516

We don't use downlevelIteration so don't gain anything from enabling this.

importHelpers requires tslib to be added as a dependency of all
packages. This isn't the case currently and causes breakage:

    [vite]: Rollup failed to resolve import "/home/runner/work/osrd-ui/osrd-ui/node_modules/tslib/tslib.es6.js" from "/app/node_modules/@osrd-project/ui-core/dist/index.esm.js".

We don't use downlevelIteration so don't gain anything from enabling
this.

Signed-off-by: Simon Ser <[email protected]>
@emersion emersion requested review from clarani and Akctarus February 6, 2025 09:25
@emersion emersion requested a review from a team as a code owner February 6, 2025 09:25
Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

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

LGTM ✅

Copy link
Contributor

@Akctarus Akctarus left a comment

Choose a reason for hiding this comment

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

lgtm

@emersion emersion added this pull request to the merge queue Feb 6, 2025
@emersion emersion self-assigned this Feb 6, 2025
Merged via the queue into dev with commit 08aa94e Feb 6, 2025
6 checks passed
@emersion emersion deleted the emr/no-import-helpers branch February 6, 2025 16:29
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.

3 participants