Skip to content

wip: ts 6.0 migration#1701

Draft
RealColdFry wants to merge 9 commits intoTypeScriptToLua:masterfrom
RealColdFry:experiment/ts6-migration
Draft

wip: ts 6.0 migration#1701
RealColdFry wants to merge 9 commits intoTypeScriptToLua:masterfrom
RealColdFry:experiment/ts6-migration

Conversation

@RealColdFry
Copy link
Copy Markdown
Contributor

@RealColdFry RealColdFry commented Mar 30, 2026

first pass at ts 6.0 migration, not meant to merge as-is.

building on top of ts-6 branch. same direction but fixes tests individually for strict mode instead of disabling it globally. also adds paths-without-baseUrl support in the resolver since baseUrl is deprecated in 6.0.

using this to explore what breaks and test against personal game code. happy to throw away or rework any of this.

@RealColdFry
Copy link
Copy Markdown
Contributor Author

RealColdFry commented Mar 30, 2026

things to check later:

  • restore pre-compiled picomatch matchers, currently recompiling per call which is a perf regression
  • duplicate test name "in function parameter" in destructuring tests, rename one
  • verify paths-simple snapshot change, output path changed from dist/main.lua to dist/myprogram/main.lua
  • strictNullChecks: false additions in a few tests, might be masking real bugs
  • tsconfig swaps experimentalDecorators for moduleResolution bundler, does the source still build with module commonjs?
  • tsconfig.eslint.json only includes src but eslint lints tests too
  • comment on the overrides block explaining typescript-eslint doesn't support ts 6.0 yet
  • comment on ignoreDiagnostics([2783]) explaining the ts 6.0 change

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