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

fix: update package.json files #367

Merged
merged 5 commits into from
Mar 28, 2024

Conversation

DamianGlowala
Copy link
Member

No description provided.

@DamianGlowala DamianGlowala marked this pull request as draft March 28, 2024 07:37
Comment on lines 11 to 20
"exports": {
".": {
"import": "./dist/legacy.mjs",
"require": "./dist/legacy.cjs"
},
"./flat": {
"types": "./dist/flat.d.ts",
"import": "./dist/flat.mjs",
"require": "./dist/flat.cjs"
},
"./legacy": {
"types": "./dist/legacy.d.ts",
"import": "./dist/legacy.mjs",
"require": "./dist/legacy.cjs"
Copy link
Member

Choose a reason for hiding this comment

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

Legacy first is intentionally here to keep backward compatibility (also the legacy format can't load sub modules)

Copy link
Member Author

Choose a reason for hiding this comment

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

Are we planning to eventually change it (e.g. when ESLint v9 gets out of RC)? Flat config will be the 'new default' at that stage.

Copy link
Member

Choose a reason for hiding this comment

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

No, as I said, it's not compatible with the legacy format, so we have to keep the default export to the legacy - at some point, we could emit a warning message and ask to change over, but not right now as the ecosystem is still catching up. With the nuxt module, users don't usually need to care about this anyway

@antfu antfu marked this pull request as ready for review March 28, 2024 09:18
@antfu antfu changed the title chore: update package.json files fix: update package.json files Mar 28, 2024
@antfu antfu merged commit c56d164 into nuxt:main Mar 28, 2024
1 check passed
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.

None yet

2 participants