dsherret / dsherret/ts-morph

SourceFile#move: Support updating "paths" module specifiers

Open
#837 1 comment 4 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
6.2k
Forks
238
Avg merge
2m
Merged PRs (30d)
1

Description

If module specifiers are in paths like so:

```ts
"paths": {
"@components/*": [
"./components/*"
],
....
```

Then module specifiers like the following should be updated when a file is moved:

```ts
import ExampleComponent from "@components/ExampleComponent";
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.