From 70e3da70f5e85503572ff824d6e2b2fef9c89138 Mon Sep 17 00:00:00 2001 From: Ahn Heejong Date: Thu, 30 Aug 2018 12:50:58 +0900 Subject: [PATCH] docs: Note that `files` field limitation https://npm.community/t/local-packages-files-field-is-not-respected/1752/2 Maybe it's already obvious enough, but I thought an additional note wouldn't hurt so... --- doc/files/package.json.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/files/package.json.md b/doc/files/package.json.md index dd6492af08430..7ef3270d8649e 100644 --- a/doc/files/package.json.md +++ b/doc/files/package.json.md @@ -221,6 +221,8 @@ Conversely, some files are always ignored: * `*.orig` * `package-lock.json` (use shrinkwrap instead) +**NOTE: `files` won’t work for `file:` dependencies because they get symlinked.** + ## main The main field is a module ID that is the primary entry point to your program.