Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 11, 2025

TypeScript was treating generated .d.ts files in build/ as input files on subsequent compilations, causing "cannot write file because it would overwrite input file" errors.

Changes

  • Added "include": ["src/**/*"] to tsconfig.json to explicitly scope compilation to source files only

Without an include pattern, TypeScript defaults to discovering all .ts and .d.ts files in the project directory, including build artifacts. This is a standard tsconfig pattern for projects with separate source and output directories.

Original prompt

This section details on the original issue you should resolve

<issue_title>Fix yarn tsc errors</issue_title>
<issue_description>```
error TS5055: Cannot write file '/home/futpib/code/parser/build/allSettledStream.d.ts' because it would overwrite input file.


## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: futpib <4330357+futpib@users.noreply.github.com>
@futpib futpib marked this pull request as ready for review November 11, 2025 07:33
Copilot AI changed the title [WIP] Fix yarn tsc errors in build process Fix TS5055 error when running tsc multiple times Nov 11, 2025
Copilot AI requested a review from futpib November 11, 2025 07:34
Copilot finished work on behalf of futpib November 11, 2025 07:34
@coveralls
Copy link

Pull Request Test Coverage Report for Build 19258395931

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.07%) to 94.015%

Files with Coverage Reduction New Missed Lines %
build/arbitrarilySlicedAsyncInterable.js 2 94.92%
build/arbitraryZip.js 2 94.17%
Totals Coverage Status
Change from base Build 19258166370: -0.07%
Covered Lines: 7319
Relevant Lines: 7781

💛 - Coveralls

@futpib futpib merged commit 7088102 into master Nov 11, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix yarn tsc errors

3 participants