feat!: drop ts-node in favor of jiti as sole TypeScript loader#1297
Merged
sorccu merged 2 commits intoMay 13, 2026
Merged
Conversation
5 tasks
BREAKING CHANGE: ts-node is no longer supported as a TypeScript file loader. jiti is now a direct dependency and the only TypeScript loader. - Remove ts-node loader from both packages - Move jiti from optional peer dependency to regular dependency - Enable tsconfigPaths in jiti for automatic path alias resolution - Remove jiti from all fixture, example, and e2e project package.json files (no longer needed as a user devDependency) - Stop injecting jiti into user's package.json during import and init - Regenerate affected lockfiles Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use createRequire(path.join(cwd, 'noop.js')) instead of createRequire(import.meta.url) so module resolution is relative to the user's project directory, not the CLI's install location. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
b682d29 to
718cf74
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.
Summary
tsconfigPathsin jiti for automatic path alias resolutionpackage.jsonfilespackage.jsonduring import and initcreateRequirepath anchoring ingetPlaywrightVersionFromPackageBREAKING CHANGE: ts-node is no longer supported as a TypeScript file loader. jiti is now a direct dependency and the sole TypeScript loader.
Depends on: #1296
Test plan
🤖 Generated with Claude Code