Plugins: Should the tsBuildInfo file be located inside output.dir?

Created on 20 Apr 2020  ·  5Comments  ·  Source: rollup/plugins

  • Rollup Plugin Name: @rollup/plugin-typescript
  • Rollup Plugin Version:4.1.1

Expected Behavior / Situation

Should the tsBuildInfo file be located inside output.dir?
According to the content below, we don't have to..

These .tsbuildinfo files can be safely deleted and don’t have any impact on our code at runtime - they’re purely used to make compilations faster. We can also name them anything that we want, and place them anywhere we want using the --tsBuildInfoFile flag.
--source : TypeScript: Handbook - TypeScript 3.4

Therefore, the REPL below should be build without an error.

Repl.it - tsBuildInfo Issue

Actual Behavior / Situation

If the tsBuildInfo file is not inside output.dir, an error occurs.

Modification Proposal

Please delete or modify the code below..

https://github.com/rollup/plugins/blob/c09509f8b2bad0743ea6a70c55fa79ffaa18a1c7/packages/typescript/src/options/validate.ts#L82

c⁵ ⋅ question x⁷ ⋅ stale 🔌 plugin-typescript

Most helpful comment

I'm also hitting this issue, rollup is enforcing the tsBuildInfoFile being placed in the dir folder (configured in rollup), which is the build output so this cache pollutes that directory.

All 5 comments

@NotWoods possible bug, possible local environment issue. please have a look.

I'm also hitting this issue, rollup is enforcing the tsBuildInfoFile being placed in the dir folder (configured in rollup), which is the build output so this cache pollutes that directory.

Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it.# Comment to post when closing a stale issue.

re-opening this again!

any resolution on this? whould would be the solution? remove the check?

Was this page helpful?
0 / 5 - 0 ratings