From 405ffbfa2758ec388c06120fdf5fde2a07835779 Mon Sep 17 00:00:00 2001 From: DaviDevMod <98312056+DaviDevMod@users.noreply.github.com> Date: Tue, 20 Jun 2023 17:51:12 +0100 Subject: [PATCH] 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'. --- docs/lib/content/configuring-npm/package-json.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/lib/content/configuring-npm/package-json.md b/docs/lib/content/configuring-npm/package-json.md index 7334c5b49db16..219296f6186c7 100644 --- a/docs/lib/content/configuring-npm/package-json.md +++ b/docs/lib/content/configuring-npm/package-json.md @@ -279,9 +279,6 @@ 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. -Files included with the "package.json#files" field _cannot_ be excluded -through `.npmignore` or `.gitignore`. - Certain files are always included, regardless of settings: * `package.json`