You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Earliest version that supports getFormat, etc hooks: https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.16.0
64
-
- flavor: 2
65
-
node: 12.16
66
-
nodeFlag: 12_16
67
-
typescript: latest
68
-
typescriptFlag: latest
69
-
# Node 12
70
-
- flavor: 3
71
-
node: 12
72
-
nodeFlag: 12
73
-
typescript: latest
74
-
typescriptFlag: latest
75
56
# Node 14.13.0
76
57
# To test ESM builtin module resolution immediately before a node behavioral change: https://github.com/TypeStrong/ts-node/issues/1130
77
-
- flavor: 4
58
+
- flavor: 1
78
59
node: 14.13.0
79
60
nodeFlag: 14_13_0
80
61
typescript: latest
81
62
typescriptFlag: latest
82
63
# Node 14
83
-
- flavor: 5
64
+
- flavor: 2
84
65
node: 14
85
66
nodeFlag: 14
86
67
typescript: latest
87
68
typescriptFlag: latest
88
-
- flavor: 6
69
+
- flavor: 3
89
70
node: 14
90
71
nodeFlag: 14
91
-
typescript: 2.7
92
-
typescriptFlag: 2_7
93
-
- flavor: 7
72
+
typescript: 4.0
73
+
typescriptFlag: 4_0
74
+
- flavor: 4
94
75
node: 14
95
76
nodeFlag: 14
96
77
typescript: next
97
78
typescriptFlag: next
98
79
# Node 16
99
80
# Node 16.11.1
100
81
# Earliest version that supports old ESM Loader Hooks API: https://github.com/TypeStrong/ts-node/pull/1522
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,8 @@ We publish using `np`: https://npm.im/np
109
109
2. Rebuild the README (see instructions above, necessary because npmjs.com renders the readme)
110
110
3. (optional) Update the api-extractor report; check for unexpected changes. See below
111
111
4. Publish with `np`
112
+
-`np --branch main --no-tests`
113
+
-`--no-tests` because we must rely on CI to test ts-node. Even if you *did* run the tests locally, you would only be testing a single operating system, node version, and TypeScript version, so locally-run tests are insufficient.
112
114
5. Add changelog to the Github Release; match formatting from previous releases
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1057,14 +1057,18 @@ These tricks will make ts-node faster.
1057
1057
1058
1058
## Skip typechecking
1059
1059
1060
-
It is often better to use `tsc --noEmit` to typecheck as part of your tests or linting. In these cases, ts-node can skip typechecking.
1060
+
It is often better to typecheck as part of your tests or linting. You can run `tsc --noEmit` to do this. In these cases, ts-node can skip typechecking, making it much faster.
1061
+
1062
+
To skip typechecking in ts-node, do one of the following:
1061
1063
1062
1064
* Enable [swc](#swc)
1063
1065
* This is by far the fastest option
1064
1066
* Enable [`transpileOnly`](#transpileonly) to skip typechecking without swc
1065
1067
1066
1068
## With typechecking
1067
1069
1070
+
If you absolutely must typecheck in ts-node:
1071
+
1068
1072
* Avoid dynamic `require()` which may trigger repeated typechecking; prefer `import`
1069
1073
* Try with and without `--files`; one may be faster depending on your project
1070
1074
* Check `tsc --showConfig`; make sure all executed files are included
0 commit comments