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

--ignore-watch <folder> does not work (ignored) #327

Open
joeBidenBalls opened this issue Oct 26, 2022 · 3 comments
Open

--ignore-watch <folder> does not work (ignored) #327

joeBidenBalls opened this issue Oct 26, 2022 · 3 comments

Comments

@joeBidenBalls
Copy link

joeBidenBalls commented Oct 26, 2022

Issue description

ts-node-dev --ignore-watch <folder>

the ignore-watch argument gets ignored, so every time my node writes to the data folder the watcher wants to restart.

I believe the syntax I tried using is correct? :

"scripts": {
    "start": "ts-node-dev ./bot.ts --ignore-watch ./data/"
  },

also tried:

"ts-node-dev ./bot.ts --ignore-watch /data/"
"ts-node-dev ./bot.ts --ignore-watch ./data"
"ts-node-dev ./bot.ts --ignore-watch /data"
"ts-node-dev ./bot.ts --ignore-watch ./data/"

Context

I'm running with npm start.
OS version (is it docker or host?) windows 10, ts-node-dev version 2.0.0

@dwightgunning
Copy link

Both --ignore-watch=<<relative path>> and --ignore-watch <<relative path>> work for me.

@gscoon
Copy link

gscoon commented Jul 6, 2023

Putting my ignore values in double quotes worked for me. Dont forget to escape the quotes if calling from package.json:

"scripts": {
    "dev": "tsnd --transpile-only --ignore-watch \".next\" --ignore-watch \"src/*\" ./index",
}

@deepakaggarwal7
Copy link

deepakaggarwal7 commented Sep 14, 2023

Try putting ignore earlier

"scripts": {
    "start": "ts-node-dev --ignore-watch ./data/  ./bot.ts"
  },

Doing this solved a similar issue for me.

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

4 participants