Skip to content

--watch and --build flags work inconsistently in monorepo #32163

@stereobooster

Description

@stereobooster

TypeScript Version: 3.5.2

Search Terms:

watch monorepo

Code

https://github.com/stereobooster/typescript-monorepo/tree/typescript-bug

(or https://github.com/stereobooster/learn-a/tree/watch-bug)

Expected behavior:

When I run yarn tsc --build I get an error

packages/b/src/B.tsx:5:1 - error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.

5 "" / 0;
  ~~

but when I run watch it reports 0 errors:

[11:02:07 AM] Found 0 errors. Watching for file changes.

Actual behavior:

I expect watch mode to report errors.

Playground Link: need to clone repo, because it is monorepo

Related Issues: There are similar issues, but are not same

RyanCavanaugh/learn-a#16

Metadata

Metadata

Assignees

Labels

Working as IntendedThe behavior described is the intended behavior; this is not a bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions