Skip to content

Commit 877c489

Browse files
committed
docs: add v4 migration draft
1 parent 7948a8e commit 877c489

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
Transform compiled source module resolution paths using TypeScript's `paths` config, and/or custom resolution paths.
1616

17+
> [!NOTE]
18+
> Upgrading from v3 to v4?, see [migration](./docs/migrating-to-v4.md)
19+
1720
## Setup Steps
1821

1922
### 1. Install

docs/migrating-to-v4.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Migrating from v3 to v4
2+
3+
## Breaking Changes
4+
5+
### Package is now ESM only
6+
7+
### Dropped support for older Node.js versions. Requires Node.js >22
8+
9+
### Dropped support for older typescript versions. Requires typescript >5.8.x
10+
11+
### Removed `typescript-transform-paths/register` ts-node entrypoint
12+
13+
See https://typestrong.org/ts-node/docs/compilers/ for how to configure ts-node to use custom transformers.
14+
15+
### Renamed `nx` transformer entrypoint
16+
17+
The nx plugin entrypoint was renamed from `typescript-transform-paths/nx-transformer` to `typescript-transform-paths/plugins/nx`:
18+
19+
```diff
20+
"transformers": [
21+
{
22+
- "name": "typescript-transform-paths/nx-transformer",
23+
+ "name": "typescript-transform-paths/plugins/nx",
24+
"options": { "afterDeclarations": true },
25+
},
26+
],
27+
```

0 commit comments

Comments
 (0)