From 6c5b9a64456333545fb27f4fa9ecf692209291e0 Mon Sep 17 00:00:00 2001 From: Mowafak Almahaini <97206982+SuperMo0@users.noreply.github.com> Date: Wed, 18 Mar 2026 01:12:38 +0200 Subject: [PATCH 1/3] doc: enhance clarification about the main field removed "this" to enhance sentence flow. --- doc/api/packages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/packages.md b/doc/api/packages.md index d98fe357538a9a..e7ad88abd430f8 100644 --- a/doc/api/packages.md +++ b/doc/api/packages.md @@ -1012,7 +1012,7 @@ added: v0.4.0 The `"main"` field defines the entry point of a package when imported by name via a `node_modules` lookup. Its value is a path. -When a package has an [`"exports"`][] field, this will take precedence over the +the [`"exports"`][] field, if it exists, will take precedence over the `"main"` field when importing the package by name. It also defines the script that is used when the [package directory is loaded From 4f9fd67a38d3ea43fbf508f2d6536f8cddd6b1fc Mon Sep 17 00:00:00 2001 From: Mowafak Almahaini <97206982+SuperMo0@users.noreply.github.com> Date: Wed, 18 Mar 2026 01:57:33 +0200 Subject: [PATCH 2/3] doc: enhance clarification about the main field Co-authored-by: Antoine du Hamel --- doc/api/packages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/packages.md b/doc/api/packages.md index e7ad88abd430f8..7ca800c3193763 100644 --- a/doc/api/packages.md +++ b/doc/api/packages.md @@ -1012,7 +1012,7 @@ added: v0.4.0 The `"main"` field defines the entry point of a package when imported by name via a `node_modules` lookup. Its value is a path. -the [`"exports"`][] field, if it exists, will take precedence over the +The [`"exports"`][] field, if it exists, will take precedence over the `"main"` field when importing the package by name. It also defines the script that is used when the [package directory is loaded From dbcd2d7c98dbe846c35a5e80ab52d511fd9fb59d Mon Sep 17 00:00:00 2001 From: Mowafak Almahaini <97206982+SuperMo0@users.noreply.github.com> Date: Wed, 18 Mar 2026 15:29:34 +0200 Subject: [PATCH 3/3] doc: enhance clarification about the main field Co-authored-by: Antoine du Hamel --- doc/api/packages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/packages.md b/doc/api/packages.md index 7ca800c3193763..d00eaeaf9df675 100644 --- a/doc/api/packages.md +++ b/doc/api/packages.md @@ -1012,7 +1012,7 @@ added: v0.4.0 The `"main"` field defines the entry point of a package when imported by name via a `node_modules` lookup. Its value is a path. -The [`"exports"`][] field, if it exists, will take precedence over the +The [`"exports"`][] field, if it exists, takes precedence over the `"main"` field when importing the package by name. It also defines the script that is used when the [package directory is loaded