Skip to content

Commit 372a1e2

Browse files
committed
chore!: remove ts-node register interface
1 parent d19922d commit 372a1e2

File tree

7 files changed

+3
-475
lines changed

7 files changed

+3
-475
lines changed

README.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,8 @@ import { sum } from "@utils/sum";
6060
### 3. Usage
6161

6262
- **Compile with `tsc`** — Use [ts-patch](https://github.com/nonara/ts-patch)
63-
64-
- **Use with ts-node** — Add `typescript-transform-paths/register` to `require` config.
65-
66-
`tsconfig.json`
67-
68-
```jsonc
69-
{
70-
"ts-node": {
71-
"transpileOnly": true,
72-
"require": [ "typescript-transform-paths/register" ],
73-
},
74-
"compilerOptions" { /* ... */ }
75-
}
76-
```
77-
78-
- **Use with node** — Use the register script: `node -r typescript-transform-paths/register src/index.ts`
63+
- **ts-node** — See [wiki](https://github.com/LeDDGroup/typescript-transform-paths/wiki/Integration-with-nx)
64+
- **nx** — See [wiki](https://github.com/LeDDGroup/typescript-transform-paths/wiki/Integration-with-ts%E2%80%90node)
7965

8066
## Virtual Directories
8167

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
".": {
88
"types": "./dist/index.d.ts",
99
"default": "./dist/index.js"
10-
},
11-
"./register": "./dist/register-entry.js"
10+
}
1211
},
1312
"files": [
1413
"dist",

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export type { TsTransformPathsConfig } from "./types";
2-
export { register } from "./register";
32

43
export { default } from "./transformer";

src/register-entry.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/register.ts

Lines changed: 0 additions & 128 deletions
This file was deleted.

test/tests/extras.test.ts

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)