Skip to content

Commit 498186a

Browse files
authored
chore: recommend tsm instead of ts-node for TS integration (#23)
1 parent 3c290b7 commit 498186a

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

readme.md

+4-17
Original file line numberDiff line numberDiff line change
@@ -270,27 +270,14 @@ For extra confidence while writing your migration file(s), there are two options
270270

271271
### TypeScript
272272

273-
1. Ensure [`ts-node`](https://www.npmjs.com/package/ts-node) is installed
274-
275-
2. Define a `ts-node` configuration block inside your `tsconfig.json` file:
276-
277-
```json
278-
{
279-
"ts-node": {
280-
"transpileOnly": true,
281-
"compilerOptions": {
282-
"module": "commonjs"
283-
}
284-
}
285-
}
286-
```
273+
1. Ensure [`tsm`](https://www.npmjs.com/package/tsm) is installed
287274

288-
3. Run `ley` with the [`require`](#optsrequire) option so that `ts-node` can process file(s)
275+
2. Run `ley` with the [`require`](#optsrequire) option so that `tsm` can process file(s)
289276

290277
```sh
291-
$ ley -r ts-node/register <cmd>
278+
$ ley -r tsm <cmd>
292279
# or
293-
$ ley --require ts-node/register <cmd>
280+
$ ley --require tsm <cmd>
294281
```
295282

296283
### JSDoc

0 commit comments

Comments
 (0)