Skip to content

Commit 405ffbf

Browse files
authoredJun 20, 2023
docs: remove redundant statement about files attribute (#6557)
Remove redundant and inaccurate statement about the "package.json#files" field The statement: 'Files included with the "package.json#files" field cannot be excluded through `.npmignore` or `.gitignore`'. Is inaccurate and redundant as the concept is already being explained right above: 'You can also provide a `.npmignore` file in the root of your package or in subdirectories, which will keep files from being included. At the root of your package it will not override the "files" field, but in subdirectories it will. The `.npmignore` file works just like a `.gitignore.` If there is a `.gitignore` file, and `.npmignore` is missing, `.gitignore`'s contents will be used instead'.
1 parent afb12c0 commit 405ffbf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed
 

‎docs/lib/content/configuring-npm/package-json.md

-3
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,6 @@ it will. The `.npmignore` file works just like a `.gitignore`. If there is
279279
a `.gitignore` file, and `.npmignore` is missing, `.gitignore`'s contents
280280
will be used instead.
281281

282-
Files included with the "package.json#files" field _cannot_ be excluded
283-
through `.npmignore` or `.gitignore`.
284-
285282
Certain files are always included, regardless of settings:
286283

287284
* `package.json`

0 commit comments

Comments
 (0)
Please sign in to comment.