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): remove dependency of nx-plugin to linter #572

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

goetzrobin
Copy link
Member

I barked up the wrong tree...
The issue stemmed from the nx-plugin being dependent on @nx/linter with the way it was set up. Instead, we are just creating a Nx workspace with the preset, which means the dependency is not installed. We need to import the @nx/linter dependency during runtime to avoid the preset to error out.

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?

Even when forcing the @nx/linter dependency to be installed during the preset the execution fails. This is due to the nx-plugin having a direct
dependency on @nx/linter instead of importing it during runtime.
This time for real:

Closes #567

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

I am not sure exactly how to add a test for this?
I thought the e2e test would catch this but it seems like it did not and somehow resolved @nx/linter correctly?

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

Sorry

I barked up the wrong tree...
The issue stemmed from the nx-plugin being dependent on
@nx/linter with the way it was set up. Instead, we are
just creating a Nx workspace with the preset, which means
the dependency is not installed. We need to import the
@nx/linter dependency during runtime to avoid the preset
to error out.
@netlify
Copy link

netlify bot commented Jul 25, 2023

Deploy Preview for analog-app ready!

Name Link
🔨 Latest commit 2b908ed
🔍 Latest deploy log https://app.netlify.com/sites/analog-app/deploys/64bfd7e5f8f9b3000865adb4
😎 Deploy Preview https://deploy-preview-572--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 Jul 25, 2023

Deploy Preview for analog-blog ready!

Name Link
🔨 Latest commit 2b908ed
🔍 Latest deploy log https://app.netlify.com/sites/analog-blog/deploys/64bfd7e516e2b70008a2893c
😎 Deploy Preview https://deploy-preview-572--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 Jul 25, 2023

Deploy Preview for analog-docs ready!

Name Link
🔨 Latest commit 2b908ed
🔍 Latest deploy log https://app.netlify.com/sites/analog-docs/deploys/64bfd7e5e52a0c0007bade14
😎 Deploy Preview https://deploy-preview-572--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.

@brandonroberts brandonroberts merged commit 43f30e8 into main Jul 25, 2023
19 checks passed
@brandonroberts brandonroberts deleted the remove-nx-linter-dependency branch July 25, 2023 16:17
Villanuevand pushed a commit to Villanuevand/analog that referenced this pull request Sep 12, 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.

@nx/linter dependency is missing when using nx preset
2 participants