{"action":"opened","issue":{"url":"https://api.github.com/repos/remy/nodemon/issues/1320","repository_url":"https://api.github.com/repos/remy/nodemon","labels_url":"https://api.github.com/repos/remy/nodemon/issues/1320/labels{/name}","comments_url":"https://api.github.com/repos/remy/nodemon/issues/1320/comments","events_url":"https://api.github.com/repos/remy/nodemon/issues/1320/events","html_url":"https://github.com/remy/nodemon/issues/1320","id":316014483,"number":1320,"title":"Restarts for non watched files","user":{"login":"mrchief","id":781818,"avatar_url":"https://avatars3.githubusercontent.com/u/781818?v=4","gravatar_id":"","url":"https://api.github.com/users/mrchief","html_url":"https://github.com/mrchief","followers_url":"https://api.github.com/users/mrchief/followers","following_url":"https://api.github.com/users/mrchief/following{/other_user}","gists_url":"https://api.github.com/users/mrchief/gists{/gist_id}","starred_url":"https://api.github.com/users/mrchief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrchief/subscriptions","organizations_url":"https://api.github.com/users/mrchief/orgs","repos_url":"https://api.github.com/users/mrchief/repos","events_url":"https://api.github.com/users/mrchief/events{/privacy}","received_events_url":"https://api.github.com/users/mrchief/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-19T19:43:38Z","updated_at":"2018-04-19T19:43:38Z","closed_at":null,"author_association":"NONE","body":"<!-- \r\n  when raising an issue please include replies to the following questions, \r\n  and if you're reporting a bug, please include details on how to replicate\r\n  and **assume** I have no knowledge of how your systems work - that includes\r\n  gulp, grunt, webpack, etc. Thank you so much <3\r\n-->\r\n\r\n- `nodemon -v`: 1.17.3\r\n- `node -v`: 8.9.4\r\n- Operating system/terminal environment: Win 7 x64\r\n- Command you ran: `nodemon index.js --inspect --exec babel-node`\r\n\r\n**nodemon.json**\r\n\r\n```\r\n{\r\n  \"delay\": \"2500\",\r\n  \"watch\": [\r\n    \"index.js\",\r\n    \"tools/webpack/\",\r\n    \"!tools/webpack/webpack.server.babel.js\",\r\n    \"src/server.js\",\r\n    \"src/utils/Html.js\"\r\n  ]\r\n}\r\n```\r\n\r\n### Expected behaviour\r\nNodemon should not restart if the files being watched have not changed\r\n\r\n### Actual behaviour\r\nNodemon restarts arbitrarily\r\n\r\n### Steps to reproduce\r\nI'm using hot reload to watch/reload for client side file changes (which are other files in `src` folder) and nodemon to restart the process when only those files listed in the config changes. \r\n\r\nThis worked fine in 1.15.0.\r\n\r\nHowever, starting few days back, I started seeing same errors as #1259 (been using this setup without issues for last 6 months).  I saw the fix and decided to upgrade. Now with current version, nodemon is restarting more often. #1260 seems like a suspect but I'm not sure.\r\n\r\nYou can use create-react-app along with the provided nodemon.json to reproduce this. Doesn't happen consistently but happens frequently enough.\r\n\r\n---\r\n\r\nIf applicable, please append the `--dump` flag on your command and include the output here **ensuring to remove any sensitive/personal details or tokens**.\r\n\r\n--------------\r\n\r\n```\r\nnode: v8.9.4\r\nnodemon: 1.17.3\r\ncommand: C:\\Program Files (x86)\\Nodist\\v-x64\\8.9.4\\node.exe D:\\git\\myapp\\node_modules\\nodemon\\bin\\nodemon.js index.js --inspect --dump --exec babel-node\r\ncwd: D:\\git\\myapp\r\nOS: win32 x64\r\n--------------\r\n{ run: false,\r\n  system: { cwd: 'D:\\\\git\\\\myapp' },\r\n  required: false,\r\n  dirs:\r\n   [ 'D:\\\\git\\\\myapp\\\\index.js',\r\n     'D:\\\\git\\\\myapp\\\\tools\\\\webpack',\r\n     'D:\\\\git\\\\myapp\\\\src\\\\server.js',\r\n     'D:\\\\git\\\\myapp\\\\src\\\\utils\\\\Html.js' ],\r\n  timeout: 1000,\r\n  options:\r\n   { dump: true,\r\n     exec: 'babel-node',\r\n     delay: '2500',\r\n     watch:\r\n      [ 'index.js',\r\n        'tools/webpack/',\r\n        '!tools/webpack/webpack.server.babel.js',\r\n        'src/server.js',\r\n        'src/utils/Html.js',\r\n        re: /index\\.js|tools\\/webpack\\/|!tools\\/webpack\\/webpack\\.server\\.babel\\.js|src\\/server\\.js|src\\/utils\\/Html\\.js/ ],\r\n     ignore:\r\n      [ '**/.git/**',\r\n        '**/.nyc_output/**',\r\n        '**/.sass-cache/**',\r\n        '**/bower_components/**',\r\n        '**/coverage/**',\r\n        '**/node_modules/**',\r\n        re: /.*.*\\/\\.git\\/.*.*|.*.*\\/\\.nyc_output\\/.*.*|.*.*\\/\\.sass\\-cache\\/.*.*|.*.*\\/bower_components\\/.*.*|.*.*\\/coverage\\/.*.*|.*.*\\/node_modules\\/.*.*/ ],\r\n     ignoreRoot:\r\n      [ '**/.git/**',\r\n        '**/.nyc_output/**',\r\n        '**/.sass-cache/**',\r\n        '**/bower_components/**',\r\n        '**/coverage/**',\r\n        '**/node_modules/**' ],\r\n     restartable: 'rs',\r\n     colours: true,\r\n     execMap: { py: 'python', rb: 'ruby' },\r\n     stdin: true,\r\n     runOnChangeOnly: false,\r\n     verbose: false,\r\n     signal: 'SIGUSR2',\r\n     stdout: true,\r\n     watchOptions: {},\r\n     execOptions:\r\n      { script: 'index.js',\r\n        exec: 'babel-node',\r\n        args: [ '--inspect' ],\r\n        scriptPosition: 0,\r\n        nodeArgs: undefined,\r\n        execArgs: [],\r\n        ext: 'js,mjs,json',\r\n        env: {} },\r\n     monitor:\r\n      [ 'index.js',\r\n        'D:\\\\git\\\\myapp\\\\tools\\\\webpack/**/*',\r\n        '!tools/webpack/webpack.server.babel.js',\r\n        'src/server.js',\r\n        'src/utils/Html.js',\r\n        '!**/.git/**',\r\n        '!**/.nyc_output/**',\r\n        '!**/.sass-cache/**',\r\n        '!**/bower_components/**',\r\n        '!**/coverage/**',\r\n        '!**/node_modules/**' ] },\r\n  load: [Function],\r\n  reset: [Function: reset],\r\n  lastStarted: 0,\r\n  loaded: [ 'D:\\\\git\\\\myapp\\\\nodemon.json' ],\r\n  watchInterval: null,\r\n  signal: 'SIGUSR2',\r\n  command:\r\n   { raw: { executable: 'babel-node', args: [ 'index.js', '--inspect' ] },\r\n     string: 'babel-node index.js --inspect' } }\r\n--------------\r\n```"}}
{"actor":{"display_login":"mrchief"}}