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

fix(js): do not overwrite supported typescript version #17350

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented Jun 1, 2023

Current Behavior

The @nx/js:init generator always sets the typescript package version to the latest supported version. This causes issues where an older supported version is needed in the workspace (e.g. when using an older supported version of Angular).

Expected Behavior

The @nx/js:init generator should not overwrite the typescript package version if it's a supported version.

Related Issue(s)

Fixes #17344

@leosvelperez leosvelperez self-assigned this Jun 1, 2023
@vercel
Copy link

vercel bot commented Jun 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 1, 2023 0:56am

@n4imLess
Copy link

n4imLess commented Jun 1, 2023

As this popped up for Angular, would you mind also fixing this for other packages? Maybe a more general approach would be then necessary. "ng-packagr" is simply overwritten in the angular library generator and does not care about the currently installed version either.

https://github.com/nrwl/nx/blob/master/packages/angular/src/generators/library/library.ts#L100

I know it does not really relate to this MR. If you prefer I can create a new issue instead.

EDIT: Thanks for fixing it :)

@leosvelperez leosvelperez marked this pull request as ready for review June 1, 2023 13:43
@leosvelperez leosvelperez requested a review from a team as a code owner June 1, 2023 13:43
@github-actions
Copy link

github-actions bot commented Jun 8, 2023

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants