glory
                                
                                
                                
                                    glory copied to clipboard
                            
                            
                            
                        Update dependency ts-node to v10
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence | 
|---|---|---|---|---|---|
| ts-node (source) | 9.1.1 -> 10.1.0 | 
Release Notes
TypeStrong/ts-node
v10.1.0
Questions about this release? Ask in the official discussion thread: #1390
Added
- Add 
"moduleType"option to override module type -- CommonJS or ECMAScript -- on select files. (docs) (#1342, #1371, #1376)- Useful when a configuration file, for example 
webpack.config.ts, must execute as CommonJS but the rest of the project is ESM - selectively overrides 
package.json"type"andtsconfig.json"module" - akin to 
.cjsand.mjsextensions, but for.tsand.tsxfiles - thanks to @jayaddison for help on test coverage
 
 - Useful when a configuration file, for example 
 - Implement 
"extends"support for"ts-node"options intsconfig.json(#1328, #1356)"ts-node": {}options will be parsed from extended tsconfigs- allows sharing and deduplicating ts-node configuration
 
 - Un-deprecate 
scopeandscopeDir; add both to CLI andtsconfig.jsonoptions; un-deprecateTS_NODE_SCOPEenv var; addTS_NODE_SCOPE_DIRenv var (docs) (#1346, #1367) 
Changed
- Improve error messages thrown by native ESM loader hooks (#1357, #1373) @tars0x9752
- messages more closely match node; are more descriptive
 
 - Emit 
"ts-node"object at the top of--showConfigoutput instead of the bottom (#1355) 
Fixed
- Fix #1282: Set correct globals in 
[stdin],[eval], and<repl>contexts (#1333)- More closely align ts-node's behavior with vanilla node
 - Affects the interactive REPL, piping to stdin, and 
ts-node -e - Matches node's behavior for globals 
__filename,__dirname,moduleand sub-fields ofmodule,exports, and builtin module aliasesfs, etc 
 - Fix #1343: Set swc option 
keepClassNamestotrue(#1344) - Fix: #1387: REPL outputs 'use strict' after first empty line of input (#1388) @ejose19
 
Docs
https://github.com/TypeStrong/ts-node/milestone/3
v10.0.0
Questions about this release? Ask in the official discussion thread: #1337
Breaking changes are prefixed with [BREAKING]
Added
- Adds 
--show-configto log the resolved configuration (docs) (#1100, #1243) - Bundle and re-export @tsconfig/node* configurations for convenience (docs) (#1202, #1236, #1313)
 - Default to appropriate @tsconfig/node* configuration based on node and typescript versions (docs) (#1202, #1236, #1313)
 - Automatically reference @types/node; use globally-installed @types/node if not locally installed (#1240, #1257)
 - Add 
swcintegration and new--transpileroption to use third-party transpilers for a massive speed boost on large codebases (docs) (#779, #1160) - Add 
scopeDirAPI option (docs) (#1155) - Add 
projectSearchDirAPI option (docs) (#1155) - Add 
--cwd-modeandts-node-cwdto resolve config file relative to cwd, not entrypoint script (#1155) 
Changed
- [BREAKING] Make 
--script-modedefault behavior; resolve tsconfig relative to entrypoint script instead of cwd (#949, #1197, #1155)- In most cases this change will have no noticeable effect
 - Primarily benefits portable shell scripts on your 
$PATH, becausets-nodewill respect the script's localtsconfig.json - Use 
--cwd-modeorts-node-cwdif you need legacy behavior 
 - [BREAKING] 
ignorerules evaluate relative totsconfig.jsondirectory, otherwisecwd(#1155) - [BREAKING] Remove support for node 10. Minimum supported version is node 12 (#1312)
 - Rename 
--dirto--cwd; renameTS_NODE_DIRtoTS_NODE_CWD(#1155)--dirandTS_NODE_DIRare deprecated but still parsed for backwards-compatibility--direffectively changed the working directory ofts-node; renaming makes this behavior more obvious
 
Deprecated
Removed
- [BREAKING] Internal APIs removed from type declarations (#1242)
- Removed 
DEFAULTS,normalizeSlashes,parse,split - No features were removed
 - This will only affect consumers of 
ts-node's programmatic API 
 - Removed 
 
Fixed
- [BREAKING] Fix #1229 and #1235: always throw 
ERR_REQUIRE_ESMwhen attempting to execute ESM as CJS, even when not using--loader ts-node/esm(#1232)- This aligns our behavior with vanilla 
node 
 - This aligns our behavior with vanilla 
 - [BREAKING] Fix #1225: 
compileris loaded relative totsconfig.jsoninstead of entrypoint script (#1155)- In most cases this change will have no noticable effect
 
 - Fix #1217: REPL not always using passed stdout and stderr (#1224)
 - Fix #1220: 
ts-node ./indexmay execute the wrong file extension because tsconfig search poisons therequire.resolvecache (#1155) - Fix #1322: Sourcemaps fail for filenames with spaces or other characters which are percent-encoded in URLs (#1160, #1330)
 - Fix #1331: Resolution of node builtin modules in ESM loader fails on node >=12.20.0, <13 (#1332)
 
Docs
- New documentation website: https://typestrong.org/ts-node
- README is generated to match the website
 - Added page explaining CommonJS vs ESM
 - Added page with Performance advice
 - Added Troubleshooting page
 - Organized and added to "Recipes" section with third-party tool integrations
 - Added TypeDoc-generated API docs
 - Work was spread across multiple tickets: #1207, #1213, #1221, #1228, #1244, #1250, #1294, #1295, #1296, #1297
 - Thanks to these contributors for PRs which improved our documentation
- add troubleshooting tip for syntax errors (#1201) @jedwards1211
 - Clarify handling of tsx/jsx file extensions (#1179) @NaridaL
 
 
 - Added 
CONTRIBUTING.mdto document the codebase and our development workflow 
https://github.com/TypeStrong/ts-node/milestone/1
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box.
 
This PR has been generated by WhiteSource Renovate. View repository job log here.