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

Explicitly mark all packages with commonjs type #2414

Merged
merged 2 commits into from
May 21, 2021

Conversation

mrtnzlml
Copy link
Member

See: https://nodejs.org/api/packages.html#packages_determining_module_system

Package authors should include the "type" field, even in packages where all sources are CommonJS. Being explicit about the type of the package will future-proof the package in case the default type of Node.js ever changes, and it will also make things easier for build tools and loaders to determine how the files in the package should be interpreted.

Related issue: #2341

@mrtnzlml mrtnzlml requested a review from a team as a code owner May 21, 2021 14:25
See: https://nodejs.org/api/packages.html#packages_determining_module_system

> Package authors should include the "type" field, even in packages where all sources are CommonJS. Being explicit about the type of the package will future-proof the package in case the default type of Node.js ever changes, and it will also make things easier for build tools and loaders to determine how the files in the package should be interpreted.

Related issue: #2341
@vercel vercel bot temporarily deployed to Preview – universe-sx-tailwind-website May 21, 2021 14:27 Inactive
@vercel vercel bot temporarily deployed to Preview – universe-example-relay May 21, 2021 14:27 Inactive
@vercel vercel bot temporarily deployed to Preview – universe-example-relay May 21, 2021 18:48 Inactive
@vercel vercel bot temporarily deployed to Preview – universe-sx-tailwind-website May 21, 2021 18:48 Inactive
@kodiakhq kodiakhq bot merged commit 7288ec2 into master May 21, 2021
@kodiakhq kodiakhq bot deleted the explicit_packagejson_type branch May 21, 2021 19:01
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.

2 participants