Skip to content

feat!: drop ts-node in favor of jiti as sole TypeScript loader#1297

Merged
sorccu merged 2 commits into
next/v8from
simo/sim-243-drop-ts-node-in-favor-of-jiti-as-sole-typescript-loader
May 13, 2026
Merged

feat!: drop ts-node in favor of jiti as sole TypeScript loader#1297
sorccu merged 2 commits into
next/v8from
simo/sim-243-drop-ts-node-in-favor-of-jiti-as-sole-typescript-loader

Conversation

@sorccu
Copy link
Copy Markdown
Member

@sorccu sorccu commented May 13, 2026

Summary

  • 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
  • Stop injecting jiti into user's package.json during import and init
  • Fix createRequire path anchoring in getPlaywrightVersionFromPackage

BREAKING 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

  • All unit tests pass
  • Build succeeds for both packages

🤖 Generated with Claude Code

sorccu and others added 2 commits May 13, 2026 19:43
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>
@sorccu sorccu force-pushed the simo/sim-243-drop-ts-node-in-favor-of-jiti-as-sole-typescript-loader branch from b682d29 to 718cf74 Compare May 13, 2026 10:44
@sorccu sorccu merged commit 557774b into next/v8 May 13, 2026
10 of 11 checks passed
@sorccu sorccu deleted the simo/sim-243-drop-ts-node-in-favor-of-jiti-as-sole-typescript-loader branch May 13, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant