basarat / basarat/typescript-book

What is place in module lookup

Open
#678 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.