Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

doc: fix Folders as Modules omission of index.json #8868

Closed
wants to merge 1 commit into from

Conversation

es128
Copy link

@es128 es128 commented Dec 13, 2014

This section was inconsistent with the actual behavior of require and
with other parts of this same document, which do describe the ability
to treat index.json as a module’s default file.

PR inspired by the discussion at michaelficarra/us-states#3

This section was inconsistent with the actual behavior of `require` and
with other parts of this same document, which do describe the ability
to treat index.json as a module’s default file.
@es128
Copy link
Author

es128 commented Dec 13, 2014

Potentially, this could be even further clarified regarding directories that contain a package.json lacking a main property. But that may also be overkill, so I'll await feedback.

@jasnell jasnell added the doc label Aug 14, 2015
@jasnell
Copy link
Member

jasnell commented Aug 29, 2015

I'm rather surprised this was never looked at. I notice the doc problem still exists in v0.12 and nodejs/node master too. LGTM

jasnell pushed a commit that referenced this pull request Aug 29, 2015
This section was inconsistent with the actual behavior of `require` and
with other parts of this same document, which do describe the ability
to treat index.json as a module’s default file.

PR-URL: #8868
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
@jasnell
Copy link
Member

jasnell commented Aug 29, 2015

Landed in 62c8948

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants