Can’t add files with `Project.addSourceFilesAtPaths()`
Open
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 238
- Avg merge
- 2m
- Merged PRs (30d)
- 1
Description
**Describe the bug**
Version: 19.0.0
**To Reproduce**
```ts
import { Project } from "ts-morph";
const project = new Project();
project.addSourceFilesAtPaths(["a/x.ts", "a/y.ts"]);
```
**Expected behavior**
Must behave like adding each file individually with `Project.addSourceFileAtPath()`.
Contributor guide
Research direction
Read CONTRIBUTING.md, then inspect Project.addSourceFilesAtPaths() alongside Project.addSourceFileAtPath(). Run the provided TypeScript reproduction and compare the resulting project files with those from adding each path individually; done means both approaches behave the same.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100