Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v18.2.0 A series of config tweaks to support ESM config #8

Merged
merged 4 commits into from
Sep 26, 2024

Conversation

Republicof1
Copy link
Contributor

jest.config reworked to better support ESM handling. Changes explicitly command ts-jest to handle .ts and .js extensions such that both jest and tsc can consume them.

package.json alatered, eslint 9.9.1 not supported in in @typescript-eslint. Current top supported version is 8.57.0.

3 TSOFA files have .js extension added to their import statements. This is necessary, but TSC/ts-jest regard them as .ts when necessary.

TS config changes to specify this is a module type, conforming with other ESM work. Also this identifies latest node and ES definitions (all within 4 years). ESM vs CommonJS. ModuleResolution set to NodeNext. Lib and Types included in the config also.

Republicof1 and others added 4 commits September 25, 2024 16:05
jest.config reworked to better support ESM handling. Changes explicitly command ts-jest to handle .ts and .js extensions such that both jest and tsc can consume them.

package.json alatered, eslint 9.9.1 not supported in in @typescript-eslint. Current top supported version is 8.57.0.

 3 TSOFA files have .js extension added to their import statements. This is necessary, but TSC/ts-jest regard them as .ts when necessary.

TS config changes to specify this is a module type, conforming with other ESM work. Also this identifies latest node and ES definitions (all within 4 years). ESM vs CommonJS. ModuleResolution set to NodeNext. Lib and Types included in the config also.
also only bump the version up by .1 as that has not yet been published
also fix the target at ES2020
@pahjbo pahjbo merged commit e231ae1 into main Sep 26, 2024
1 check passed
@pahjbo pahjbo deleted the 4-module-setup-changes branch September 26, 2024 14:29
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.

2 participants