{"action":"created","issue":{"url":"https://api.github.com/repos/dylang/npm-check/issues/123","repository_url":"https://api.github.com/repos/dylang/npm-check","labels_url":"https://api.github.com/repos/dylang/npm-check/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/dylang/npm-check/issues/123/comments","events_url":"https://api.github.com/repos/dylang/npm-check/issues/123/events","html_url":"https://github.com/dylang/npm-check/issues/123","id":145735370,"number":123,"title":"Npm-check 5.1 is too zealous while looking for missing modules","user":{"login":"ingro","id":879431,"avatar_url":"https://avatars.githubusercontent.com/u/879431?v=3","gravatar_id":"","url":"https://api.github.com/users/ingro","html_url":"https://github.com/ingro","followers_url":"https://api.github.com/users/ingro/followers","following_url":"https://api.github.com/users/ingro/following{/other_user}","gists_url":"https://api.github.com/users/ingro/gists{/gist_id}","starred_url":"https://api.github.com/users/ingro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ingro/subscriptions","organizations_url":"https://api.github.com/users/ingro/orgs","repos_url":"https://api.github.com/users/ingro/repos","events_url":"https://api.github.com/users/ingro/events{/privacy}","received_events_url":"https://api.github.com/users/ingro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dylang/npm-check/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/dylang/npm-check/labels/issue%20is%20in%20a%20dependency","name":"issue is in a dependency","color":"e99695"},{"url":"https://api.github.com/repos/dylang/npm-check/labels/who%20else%20wants%20this?","name":"who else wants this?","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-04-04T16:29:30Z","updated_at":"2016-10-20T09:25:12Z","closed_at":null,"body":"Hello! First of all, thanks for your work, I love this helper as I love to keep my projects with depencies up to date!\r\n\r\nAnyway since updating to 5.1 I noticed an annoying behaviour: `npm-check` is starting to look for modules everywhere, even in `.eslintrc` or `karma.conf.js`!\r\n\r\nThe worst part is that I use `webpack` resolve's `modulesDirectories` options to load my modules with absolute paths from the root of my project, so I have a lot of this calls:\r\n\r\n`import Header from 'components/header'` or `import * as api from 'utils/api'`\r\n\r\nBefore 5.1 they were ignored, while now they are all caught making the report unreadable:\r\n\r\n```\r\nactions                             �  MISSING!  Not installed.\r\n                                        �  PKG ERR!  Not in the package.json. Found in: \\src\\scripts\\actio\r\nns\\animations.js, \\src\\scripts\\actions\\blocks.js, \\src\\scripts\\actions\\currentConversation.js, \\src\\script\r\ns\\actions\\mail.js, \\src\\scripts\\components\\Main.jsx...\r\n```\r\n\r\nand so on.\r\n\r\nI tried also with the `-s` flag but it skips a lot of modules so it's not viable either."},"comment":{"url":"https://api.github.com/repos/dylang/npm-check/issues/comments/255055173","html_url":"https://github.com/dylang/npm-check/issues/123#issuecomment-255055173","issue_url":"https://api.github.com/repos/dylang/npm-check/issues/123","id":255055173,"user":{"login":"alexkuz","id":790659,"avatar_url":"https://avatars.githubusercontent.com/u/790659?v=3","gravatar_id":"","url":"https://api.github.com/users/alexkuz","html_url":"https://github.com/alexkuz","followers_url":"https://api.github.com/users/alexkuz/followers","following_url":"https://api.github.com/users/alexkuz/following{/other_user}","gists_url":"https://api.github.com/users/alexkuz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkuz/subscriptions","organizations_url":"https://api.github.com/users/alexkuz/orgs","repos_url":"https://api.github.com/users/alexkuz/repos","events_url":"https://api.github.com/users/alexkuz/events{/privacy}","received_events_url":"https://api.github.com/users/alexkuz/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T09:25:12Z","updated_at":"2016-10-20T09:25:12Z","body":"I have similar problems:\r\n\r\n1. I'm using custom `resolve.modules` in webpack config, so there are false positives for such modules. Config looks like this:\r\n```\r\nresolve: {\r\n        modules: [\r\n          'web_modules',\r\n          'node_modules',\r\n          'shared'\r\n        ]\r\n}\r\n```\r\nI guess it's not that easy to support this, though (in this example, it would require checking every nested `shared` folder in project).\r\n\r\n2. Unsupported webpack loaders syntax (like `!!style!css?modules!postcss!.`). This issue is more common, I believe, and is probably easier to fix: split by `!`, normalize loader names (`style` -> `style-loader`) and then check them, something like that."}}
{"actor":{"display_login":"alexkuz"}}