Remove ts-node in favor of native Node.js TypeScript support#821
Draft
Remove ts-node in favor of native Node.js TypeScript support#821
Conversation
Copilot
AI
changed the title
[WIP] Remove ts-node in favor of native TypeScript support
Remove ts-node in favor of native Node.js TypeScript support
Mar 26, 2026
ecraig12345
reviewed
Mar 26, 2026
| } | ||
|
|
||
| /** Wrap a test that should be successful with extra logging in case it fails */ | ||
| async function wrapCallTask(task: TaskFunction, options?: { expectError?: boolean }) { |
Member
There was a problem hiding this comment.
Move this helper back to this location in the file
Contributor
Author
There was a problem hiding this comment.
Moved wrapCallTask back inside the describe.each block. Commit: 7da8b82
ecraig12345
reviewed
Mar 26, 2026
ecraig12345
reviewed
Mar 26, 2026
ecraig12345
reviewed
Mar 26, 2026
ecraig12345
requested changes
Mar 26, 2026
Copilot stopped work on behalf of
ecraig12345 due to an error
March 26, 2026 12:32
This was
linked to
issues
Mar 26, 2026
ea16666 to
495becf
Compare
- Remove enableTypeScript.ts and getTsNodeEnv.ts modules - Update config.ts to remove ts-node registration (Node 22.18+ handles TS natively) - Add support for detecting just.config.mjs and just.config.mts - Remove --esm CLI option (no longer needed with native TS) - Update nodeExecTask to remove ts-node options (enableTypeScript, tsconfig, transpileOnly) - Update webpack tasks to remove ts-node env setup and related options - Remove ts-node from just-example-lib devDependencies - Update example code to use import.meta.dirname instead of __dirname - Update docs to reference native Node.js TS support instead of ts-node - Add tests for new .mjs and .mts config file extensions - Update API reports Co-authored-by: ecraig12345 <5864305+ecraig12345@users.noreply.github.com> Agent-Logs-Url: https://github.com/microsoft/just/sessions/b13c48b9-2eb7-4f77-a0eb-52587b449842
…de checks Keep describe.each over javascript/typescript with wrapCallTask helper inside the block. Remove ts-node specific checks: maybeTsAutoArgs, enableTypeScript options, TS_NODE_ env assertions, and wrapNodeExecTask. Co-authored-by: ecraig12345 <5864305+ecraig12345@users.noreply.github.com> Agent-Logs-Url: https://github.com/microsoft/just/sessions/2f3975bc-8c32-4e48-ab85-65c99e19c89d
Co-authored-by: ecraig12345 <5864305+ecraig12345@users.noreply.github.com> Agent-Logs-Url: https://github.com/microsoft/just/sessions/9c03c317-190f-4365-8e96-0c7aa67397d3
Co-authored-by: Elizabeth Craig <ecraig12345@gmail.com>
495becf to
702b53e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
enableTypeScript.ts(ts-node loader) fromjust-taskpackagegetTsNodeEnv.tsts-node env helper fromjust-scriptspackageconfig.tsto remove ts-node registration — Node 22.18+ handles.ts/.ctsnativelyconfig.tsto add support for.mjsand.mtsconfig file extensions--esmCLI option fromcli.ts(no longer needed with native TS)nodeExecTask.tsto remove ts-node options (enableTypeScript,tsconfig,transpileOnly)ts-nodefromjust-example-libdevDependenciescustomTask.ts) to useimport.meta.dirnamefor ESM compatibilitydocs/tasks/index.md) to reference native Node.js TS support and link to Node docs.mjsand.mtsconfig file extensions inresolve.spec.tsjust-scripts.api.md)nodeExecTask, remove only ts-node specific checksjust-task(major)just-scripts(major)💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.