Skip to content

Commit

Permalink
adapter test for npmignore not found
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm1957 committed Oct 26, 2024
1 parent 5da6af9 commit 3c0f137
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Branch (`master/main/dev`) is optional.
* (mcm1957) linter has been activated and issues reported have been fixed.
* (mcm1957) Blacklist for package/dependencies has been extended.
* (mcm1957) Recommend adapter-core 3.2.2 now.
* (mcm1957) Clearify test for "[E952] .npmignore not found". [#320]

### 3.1.3 (2024-10-11)
* (mcm1957) Checker no longer crash id no npm package exists.
Expand Down
2 changes: 1 addition & 1 deletion lib/M900_GitNpmIgnore.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ async function checkNpmIgnore(context) {

// package.json files section is NOT used
if (!context.filesList.includes('.npmignore')) {
context.warnings.push(`[E952] .npmignore not found`);
context.errors.push(`[E952] neither files section at package.json nor file .npmignore not found. npm package will contain unwanted files.`);
} else {
context.warnings.push(`[W953] .npmignore found - consider using package.json object "files" instead.`);

Expand Down

0 comments on commit 3c0f137

Please sign in to comment.