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

Ignore invalid package.json "type" field values #9049

Merged
merged 1 commit into from
May 27, 2023

Conversation

devongovett
Copy link
Member

Fixes #9040

Some babel packages published package.jsons with {"type": "script"} in the latest version. Serde errors on invalid values by default. This adds a #[serde(other)] attribute so that we fall back to commonjs if the value is invalid.

@devongovett devongovett merged commit 08c3a04 into v2 May 27, 2023
14 of 16 checks passed
@devongovett devongovett deleted the fix-invalid-package-type branch May 27, 2023 18:16
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.

Could not find module "@babel/core", but it was listed in package.json. Run your package manager first.
2 participants