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(nx-plugin): make nx plugin use 16.1 #467

Closed
wants to merge 1 commit into from

Conversation

goetzrobin
Copy link
Member

currently the nx plugin let the nx angular init generator pick the version of angular to be installed. this meant that when the nx angular init generator picks 16.0.0, due to ~16.0.0 version in the nx repository, our created analog application did not work anymore. this fix makes sure the correct version ^16.1.0 is picked by nx tooling. unfortunately, semver does not like ^ in its versions so we have to remove it before finding the major version or ensuring compatibility.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Which package are you modifying?

  • vite-plugin-angular
  • vite-plugin-nitro
  • astro-angular
  • create-analog
  • router
  • platform
  • content
  • nx-plugin
  • trpc

What is the current behavior?

After upgrading to 0.2.0-beta.17 the Nx plugin breaks, due import paths that changed in Angular 16.1.
The Nx init generator we use to set up an Angular workspace under the hood currently uses ~16.0.0 as its
default version. This change ensures that ^16.1.0 is used for our Angular installation.

Closes #

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Also including some minor clean ups and additional "safe guards" that should make dependency
management easier.

[optional] What gif best describes this PR or how it makes you feel?

@netlify
Copy link

netlify bot commented Jun 19, 2023

Deploy Preview for analog-app ready!

Name Link
🔨 Latest commit 94e756d
🔍 Latest deploy log https://app.netlify.com/sites/analog-app/deploys/649e38df3ccb850008df325d
😎 Deploy Preview https://deploy-preview-467--analog-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Jun 19, 2023

Deploy Preview for analog-blog ready!

Name Link
🔨 Latest commit 94e756d
🔍 Latest deploy log https://app.netlify.com/sites/analog-blog/deploys/649e38dfd96c120008cdb241
😎 Deploy Preview https://deploy-preview-467--analog-blog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Jun 19, 2023

Deploy Preview for analog-docs ready!

Name Link
🔨 Latest commit 94e756d
🔍 Latest deploy log https://app.netlify.com/sites/analog-docs/deploys/649e38df56b455000890ec8b
😎 Deploy Preview https://deploy-preview-467--analog-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@goetzrobin goetzrobin force-pushed the fix-nx-plugin-16-point-1-incompatibility branch 2 times, most recently from c82a28d to 15efeab Compare June 20, 2023 16:26
@goetzrobin goetzrobin marked this pull request as draft June 20, 2023 16:32
currently the nx plugin let the nx angular init generator
pick the version of angular to be installed. this meant
that when the nx angular init generator picks 16.0.0, due
to ~16.0.0 version in the nx repository, our created analog
application did not work anymore. this fix makes sure the
correct version ^16.1.0 is picked by nx tooling. unfortunately,
semver does not like ^ in its versions so we have to remove it
before finding the major version or ensuring compatibility.
@goetzrobin goetzrobin force-pushed the fix-nx-plugin-16-point-1-incompatibility branch from 15efeab to 94e756d Compare June 30, 2023 02:07
@goetzrobin goetzrobin closed this Jul 1, 2023
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