You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Correctly no node/no-unpublished-require error.consttap=require('tap')
In ./lib/test.js:
// Incorrectly has node/no-unpublished-require error!consttap=require('tap')
The node/no-unpublished-require error rule incorrectly thinks that ./lib/test.js is published, causing the error. It does not seem to understand that negated globs apply recursively to files. !test.js prevents the file from being published in the nested files/folders; testable by running npm pack.
The text was updated successfully, but these errors were encountered:
In this situation…
package.json
:In
./test.js
:In
./lib/test.js
:The
node/no-unpublished-require error
rule incorrectly thinks that./lib/test.js
is published, causing the error. It does not seem to understand that negated globs apply recursively to files.!test.js
prevents the file from being published in the nested files/folders; testable by runningnpm pack
.The text was updated successfully, but these errors were encountered: