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
npm install ts-node will not give you the beta by default.
You must do npm install ts-node@beta to install the beta tag.
I haven't had time to prepare release notes yet. They will accompany the v11 stable release. Until then, the commit log will have to suffice. It links to PRs which describe their changes, though their descriptions will not be as easy to read as documentation.
I haven't had time to prepare release notes yet. They will accompany the v11 stable release. Until then, the commit log will have to suffice. It links to PRs which describe their changes, though their descriptions will not be as easy to read as documentation.
I just tried the beta together with SWC and it works great, thank you!
I generally hate adding "me too" type comments, but I think that with a beta they have some value. I'd also run into issue with incompatibilities caused by changing swc behavior, simply upgrading from 10.9.1 to the new beta was seamless and worked perfectly. Thank you.
TypeError [Error]: Cannot destructure property 'moduleType' of 'tsNodeService.moduleTypeClassifier.classifyModuleByModuleTypeOverrides(...)' as it is undefined.
at getFormat (node_modules/ts-node/src/esm.ts:360:15)
at async node_modules/ts-node/src/esm.ts:245:11
at async addShortCircuitFlag (node_modules/ts-node/src/esm.ts:409:15)
The solution for me was to patch-package ts-node, and add a fallback for when classifyModuleByModuleTypeOverrides returns undefined, to return {moduleType: 'esm'} instead.
@cspotcode Would it be worth doing a sweep through the repo and remove any dead code or tech debt for v11 release? Some examples that come to mind would be:
Bump minimum supported node.js version
Bump minimum supported TypeScript version
Combine ts-node/esm and ts-node/register into a single --import allowed for node 20
Review any other hard to maintain features, such as the REPL?
Clean up configuration into package.json? I see some issues around extends inheritance with TypeScript.
Is including SWC support too much overhead to maintain?
Fix exports to only exported the expected pieces? Remove the proxying to ./dist in ts-node/transpilers.
Reacted by Eligio Mariño, Filip Seman, Artyom, Christophe Hurpeau, Mehdi Lahlou, C. T. Lin, 糊涂, Alexey Koran, cjnoname, Daniel Derevjanik and 1 more
Looks like maintenance is a problem. #1907 is an easy merge that hasnt been done for almost two years.
Reacted by Frieder Bluemle, Filip Seman, Maciej Holyszko, Dmitriy Petrov, Daniel Derevjanik, Ravi van Rooijen, Brandon Tsang, Saran Tanpituckpong ✔️ and 145a
Activity
meyfa commentedon Oct 17, 2023
I just tried the beta together with SWC and it works great, thank you!
langonja commentedon Oct 18, 2023
What's new in this version?
cspotcode commentedon Oct 18, 2023
I haven't had time to prepare release notes yet. They will accompany the v11 stable release. Until then, the commit log will have to suffice. It links to PRs which describe their changes, though their descriptions will not be as easy to read as documentation.
v10.9.1...v11.0.0-beta.1
ggascoigne commentedon Oct 22, 2023
I generally hate adding "me too" type comments, but I think that with a beta they have some value. I'd also run into issue with incompatibilities caused by changing swc behavior, simply upgrading from 10.9.1 to the new beta was seamless and worked perfectly. Thank you.
stefandoorn commentedon Oct 25, 2023
Works good here with regards to #2000 as well.
bbrzoska commentedon Nov 9, 2023
Works great, however when I specify
moduleTypesto override files outside of the project, like this:I'm getting this error:
The solution for me was to patch-package ts-node, and add a fallback for when
classifyModuleByModuleTypeOverridesreturns undefined, to return{moduleType: 'esm'}instead.feat: use ts-node@11
blakeembrey commentedon Dec 8, 2023
@cspotcode Would it be worth doing a sweep through the repo and remove any dead code or tech debt for v11 release? Some examples that come to mind would be:
ts-node/esmandts-node/registerinto a single--importallowed for node 20package.json? I see some issues around extends inheritance with TypeScript.exportsto only exported the expected pieces? Remove the proxying to./distints-node/transpilers.cjnoname commentedon Aug 26, 2024
Is this package still being maintained? @cspotcode
jayvdb commentedon Sep 6, 2024
Looks like maintenance is a problem. #1907 is an easy merge that hasnt been done for almost two years.