When using the npm publish command, the documentation mentions that certain files will not be included in the package unless explicitly added to the "files" list in package.json or un-ignored with a specific rule. What exactly are these "certain patterns"?
This information seems quite vague for technical documentation. Is there a documented list of these patterns available anywhere other than the source code?
The reason for this inquiry arose when attempting to publish a JavaScript package containing a directory named "src" nested deep within the file structure. Surprisingly, this directory was completely excluded from the published package. However, changing the directory name resulted in its inclusion upon re-attempting the publication process. Interestingly, there were no explicit allowlist entries in the package.json file and no relevant matches in the .npmignore file. It appears that the "src" directory fell under the category of these mysterious "certain patterns," but my initial search on Google yielded no further details.