Skip to content

Commit 1f964a5

Browse files
benmccannaduh95
andauthored
Update doc/api/packages.md
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent fd21495 commit 1f964a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/packages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,8 +1099,8 @@ is a path.
10991099
When a package has an [`"exports"`][] field, this will take precedence over the
11001100
`"main"` field when importing the package by name.
11011101

1102-
When the value is a directory, [it may only be loaded via
1103-
`require()`](modules.md#folders-as-modules).
1102+
It also defines the script that is used when the [package directory
1103+
is loaded via `require()`](modules.md#folders-as-modules).
11041104

11051105
```cjs
11061106
require('./path/to/directory'); // This resolves to ./path/to/directory/main.js.

0 commit comments

Comments
 (0)