Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign updoc: fix explanation of package.json "type" field #27516
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I'm not sure that this is an improvement. I think it's important for users to know that both |
This comment has been minimized.
This comment has been minimized.
|
@GeoffreyBooth
The edited paragraph documents the "type" field specifically. The original text implies that the "type" field affects how |
This comment has been minimized.
This comment has been minimized.
|
ping @GeoffreyBooth |
This comment has been minimized.
This comment has been minimized.
|
I disagree with this change. While the field may not affect |
|
I do not find the removal to improve clarity or ease of searching for information. |
This comment has been minimized.
This comment has been minimized.
|
How about, in addition to this change, adding a sentence in the
|
This comment has been minimized.
This comment has been minimized.
|
@tamias that seems fine |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@Trott lgtm |
This comment has been minimized.
This comment has been minimized.
|
I was already working on the rebase. A separate paragraph had already been added at the end of that doc section; in the rebase I put my sentence after that paragraph. Still look okay that way? |
This comment has been minimized.
This comment has been minimized.
|
seems fine |
This comment has been minimized.
This comment has been minimized.
|
@GeoffreyBooth Does this change look OK to you now? Or is it still problematic from your point of view? |
Co-Authored-By: Geoffrey Booth <GeoffreyBooth@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
|
Looks good now, thanks! |
Regardless of the value of the `"type"` field, `.mjs` files are always treated as ES modules and `.cjs` files are always treated as CommonJS. PR-URL: #27516 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This comment has been minimized.
This comment has been minimized.
Regardless of the value of the `"type"` field, `.mjs` files are always treated as ES modules and `.cjs` files are always treated as CommonJS. PR-URL: #27516 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Regardless of the value of the `"type"` field, `.mjs` files are always treated as ES modules and `.cjs` files are always treated as CommonJS. PR-URL: #27516 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Regardless of the value of the `"type"` field, `.mjs` files are always treated as ES modules and `.cjs` files are always treated as CommonJS. PR-URL: #27516 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Regardless of the value of the `"type"` field, `.mjs` files are always treated as ES modules and `.cjs` files are always treated as CommonJS. PR-URL: nodejs#27516 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
tamias commentedMay 1, 2019
Remove erroneous reference to files with
.mjsextension, which are not affected by the "type" field.Checklist