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

Generate typesVersions entry in package.json automatically #26

Open
chrisguttandin opened this issue Feb 19, 2020 · 0 comments
Open

Generate typesVersions entry in package.json automatically #26

chrisguttandin opened this issue Feb 19, 2020 · 0 comments

Comments

@chrisguttandin
Copy link
Contributor

This is a spin-off of the discussion started in #23. Theoretically it would be possible for this tool to modify the typesVersions entry of a package.json file automatically depending on the features used.

If for example no feature is used which requires any down-leveling no typesVersions property could be created at all.

If for example a private field is used in the codebase downlevel-dts could create a folder with the down-leveled files and at the same time it could update the typesVersions entry to point to that folder.

If for example a private field and accessors are used in the same codebase downlevel-dts could create two folders with the down-leveled files for TypeScript below 3.8 and for TypeScript below 3.7. It could also update the typesVersions entry to point to those two folders.

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

No branches or pull requests

1 participant