microsoft / microsoft/TypeScript

Incremental --build, then delete generated js file, then another incremental --build does not recreate js file

Open
#30,602 40 comments 56 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Awaiting More Feedback Domain: tsc: --incremental Suggestion
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

TypeScript Version: 3.4.0-dev.20190326

Search Terms:

incremental

Code

tsconfig.json:

{
  "compilerOptions": {
    "incremental": true
  }
}

x.ts:

console.log("hello");

Expected behavior:

  • $ tsc --build
  • x.js has been generated
  • $ rm x.js
  • $ tsc --build

Expected: x.js has been regenerated

Actual behavior:

x.js still does not exist

Related Issues:

Did not find any.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the stated tsconfig.json, x.ts, and the two tsc --build commands, preferably using the TypeScript version requested in the issue. Trace the incremental build behavior after x.js is deleted; done means the second build recreates x.js.彩票计划

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.