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

Switch moduleResolution in tsconfig to nodenext #4385

Open
4 tasks
char0n opened this issue Oct 19, 2024 · 1 comment
Open
4 tasks

Switch moduleResolution in tsconfig to nodenext #4385

char0n opened this issue Oct 19, 2024 · 1 comment
Assignees
Labels
ApiDOM enhancement New feature or request TypeScript TypeScript related work

Comments

@char0n
Copy link
Member

char0n commented Oct 19, 2024

This will allow TypeScript to recognize exports field in npm packages. Without this setting on we're not able to use proper imports of sub-paths with appropriate typings. nodenext this setting will also require to have an explicit file extensions, which will require a lot of changes to a lot of files.

TODO

This list is for the case when all packages has been transformed.

  • Global tsconfig.json needs to be modified when all packages are transformed
  • Local tsconfig.json needs to be amended to original form
  • Local .eslintrc needs to be dropped and made global
  • Convert packages tests to nodenext as well
@char0n char0n added enhancement New feature or request ApiDOM TypeScript TypeScript related work labels Oct 19, 2024
@char0n char0n changed the title Switch moduleResolution is tsconfig to nodenext Switch moduleResolution in tsconfig to nodenext Oct 24, 2024
@char0n
Copy link
Member Author

char0n commented Oct 24, 2024

In #4402, I've figured out how to migrate progressively monorepo package by package and transformed the apidom-error package.

@char0n char0n self-assigned this Oct 24, 2024
glowcloud added a commit that referenced this issue Nov 15, 2024
glowcloud added a commit that referenced this issue Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ApiDOM enhancement New feature or request TypeScript TypeScript related work
Projects
None yet
Development

No branches or pull requests

1 participant