Skip to content

Using "ts-node" instead of "node" by default for ts files breaks the "--inspect" flag #1565

Description

@mefcorvi
  • nodemon -v: 1.19.0
  • node -v: 12.0
  • Operating system/terminal environment: Alpine
  • Using Docker? What image: node:12-alpine
  • Command you ran: nodemon --inspect=0.0.0.0:9229 -r tsconfig-paths/register -r ts-node/register/type-check ./src/main.ts

Expected behaviour

The --inspect flag correctly passed to the node executable.

Actual behaviour

The --inspect flag passed to the ts-node executable but ts-node doesn't support that flag.

Created from PR #1552 (comment)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions