Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option -e seems to be ignored #1583

Closed
realtebo opened this issue Jun 26, 2019 · 4 comments
Closed

Option -e seems to be ignored #1583

realtebo opened this issue Jun 26, 2019 · 4 comments

Comments

@realtebo
Copy link

realtebo commented Jun 26, 2019

  • nodemon -v: 1.19.1

  • node -v: v10.16.0

  • Operating system/terminal environment: Debian 9.9 - bash

  • Using Docker? What image: NO

  • Command you ran:

      nodemon -e js,json --exec "codeceptjs run"
    

Expected behaviour

I expected that nodemon will watch for any file in the current directory whis extensions .js, or .json

Actual behaviour

When nodemon start, It is watching for any file.

Note that rows stating watching: *.*

$ nodemon -e js,json --exec "codeceptjs run"
[nodemon] 1.19.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `codeceptjs run`

Also, note this relevant portion of the dump
I can see my ext option setup correctly, watch monitor array tell me it's ignorin watching extensions

     execOptions:
      { script: null,
        exec: 'codeceptjs run',
        args: [],
        scriptPosition: null,
        nodeArgs: undefined,
        execArgs: [],
        ext: 'js,json',
        env: {} },
     monitor:
      [ '*.*',
        '!**/.git/**',
        '!**/.nyc_output/**',
        '!**/.sass-cache/**',
        '!**/bower_components/**',
        '!**/coverage/**',
        '!**/node_modules/**' ] },

@stale
Copy link

stale bot commented Jul 10, 2019

This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up.
Thank you for contributing <3

@stale stale bot added the stale no activity for 2 weeks label Jul 10, 2019
@realtebo
Copy link
Author

Problem is still here

@stale stale bot removed the stale no activity for 2 weeks label Jul 10, 2019
@remy
Copy link
Owner

remy commented Jul 16, 2019

Wait…have you tested that this doesn't restart on a .json file change?

@remy
Copy link
Owner

remy commented Jul 17, 2019

Closing as this isn't an issue. The text refers to the directories being watch - though I'm pushing a PR that will clarify that language 👍 thanks!

@remy remy closed this as completed Jul 17, 2019
remy added a commit that referenced this issue Jul 17, 2019
ref: #1583

It was unclear whether it was listing files being watched when in fact
it was the list of directories (plus, make it cleaner)
remy added a commit that referenced this issue Sep 3, 2019
ref: #1583

It was unclear whether it was listing files being watched when in fact
it was the list of directories (plus, make it cleaner)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants