basarat / basarat/typescript-book
What is place in module lookup
- Dominant language
- TypeScript
- Stars
- 21.6k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
https://basarat.gitbook.io/typescript/project/modules/external-modules#what-is-place
```else if the place is a folder and there is a foo/package.json and a file specified in the types key in the package.json that exists, then hurray!```
```else if the place is a folder and there is a package.json and a file specified in the main key in the package.json that exists, then hurray!```
Does the second line here (4th in the book) imply foo/package.json?
Contributor guide
Research direction
Read the linked “What is place” section of the TypeScript book, focusing on the two package.json lookup statements quoted in the issue. Confirm whether the second statement refers to foo/package.json, then clarify that wording in the documentation so the intended lookup location is unambiguous.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100