dsherret / dsherret/ts-morph

Can’t add files with `Project.addSourceFilesAtPaths()`

Open
#1,441 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.