Ts-node-dev: Use a configuration file

Created on 6 Mar 2020  Â·  4Comments  Â·  Source: wclr/ts-node-dev

It would be good to have a dedicated configuration file in order to prevent a long command line, especially if there are multiple --ignore-watch.

If you are interested in using confinode, I could provide help (for questions and even PRs).

Most helpful comment

@martpie, are you answering to @princebillyGK or to me ?

My suggestion is to have a configuration file for all the options of ts-node-dev, not only ignore-paths…

All 4 comments

I have ts config file. How to make this work with ts-node-dev ?

{
  "compilerOptions": {
    "module": "commonjs",
    "baseUrl": "./",
    "outDir": "build",
    "target": "es6",
    "moduleResolution": "node",
    "esModuleInterop": true,
    "lib": ["es6"],
    "allowJs": true,
    "forceConsistentCasingInFileNames": true,
  },
  "include": [
    "**.ts"
  ],
  "exclude": [
    "./frontend"
  ]
}

Sorry @princebillyGK, I don't understand. What is the link with the issue?

I think you are looking for this: https://github.com/fgnass/node-dev#ignore-paths (ts-node-dev is based on this tool)

@martpie, are you answering to @princebillyGK or to me ?

My suggestion is to have a configuration file for all the options of ts-node-dev, not only ignore-paths…

Was this page helpful?
0 / 5 - 0 ratings