Skip to content

Typescript recompile app two times in watch mode with non recursive watching on os like linux #37994

Closed
@baleksandr48

Description

@baleksandr48

I've created simple application and run command tsc -w.

Expected behavior:
Application have to be compiled. Any changes in the code have to lead to recompile.

Actual behavior:
Application compiled. Any changes in the code lead to double recompiling.

Playground Link:
I have created public repo: https://github.com/baleksandr48/tsc-bug You can clone it, run npm i and npm run build:watch

I googled a lot of info during the day, tried to update tsc version, reinstalled modules, excluded different directories in ts.config but nothing helps.

P.S. there is only ONE compiling if I run nodemon --watch 'src/**/*.ts' --exec 'tsc' -e ts

Metadata

Metadata

Assignees

Labels

Fix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions