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

Converted the ckeditor5-dev-ci package to ESM #997

Merged
merged 8 commits into from
Sep 9, 2024
Merged

Conversation

przemyslaw-zan
Copy link
Member

Suggested merge commit message (convention)

Internal (ci): Converted the package to ESM.


Additional information

For example – encountered issues, assumptions you had to make, other affected tickets, etc.

@przemyslaw-zan przemyslaw-zan changed the base branch from master to epic/3757-esm September 4, 2024 15:08
@coveralls
Copy link

coveralls commented Sep 4, 2024

Coverage Status

coverage: 91.378% (+0.3%) from 91.041%
when pulling 3680010 on ci/3762-ci
into f2b8130 on epic/3757-esm.

Copy link
Member

@pomek pomek left a comment

Choose a reason for hiding this comment

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

I left a few comments that should be addressed before merging.

import { defineConfig } from 'vitest/config';

export default defineConfig( {
test: {
Copy link
Contributor

Choose a reason for hiding this comment

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

For now this is fine, but if we are going to rewrite other packages, we need to store the config in a common place.


describe( 'lib/utils/getJobApprover', () => {
let stubs, getJobApprover;
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks pretty awesome. I like that in Vitest all of this bloated code is not needed.

@pomek pomek changed the title Converted the package to ESM Converted the ckeditor5-dev-ci package to ESM Sep 6, 2024
Copy link
Member

@pomek pomek left a comment

Choose a reason for hiding this comment

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

ESM requires extensions in import/export when operating on local files. You can fix it by updating ESLint rules.

'ckeditor5-rules/require-file-extensions-in-imports': [
'error',
{
extensions: [ '.ts', '.js', '.json' ]
}
]

@pomek pomek merged commit d755828 into epic/3757-esm Sep 9, 2024
3 of 4 checks passed
@pomek pomek deleted the ci/3762-ci branch September 9, 2024 08:20
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.

5 participants