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

feat: support module aliases and validate cwd and pkg #362

Merged
merged 7 commits into from
Mar 15, 2024
Merged

Conversation

atinux
Copy link
Member

@atinux atinux commented Mar 15, 2024

Add support to install module with alias:

CleanShot 2024-03-15 at 21 05 51@2x

See nuxt/nuxt#26277 and nuxt/modules@2376fd0

By looking at the issue, I also added a check to make sure that the package we install have at least Nuxt as dependency/devDependency instead of just installing an npm module (as some Nuxt modules are not part of nuxt/modules repository yet).

CleanShot 2024-03-15 at 21 05 39@2x

It also detects if nuxt is a dev dependency or not to install the module as dev dep or not.

README.md Show resolved Hide resolved
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@pi0 pi0 changed the title feat: support module aliases and verify if Nuxt module feat: support module aliases and validate cwd and pkg Mar 15, 2024
@pi0 pi0 merged commit 8973187 into main Mar 15, 2024
2 checks passed
@pi0 pi0 deleted the improvements branch March 15, 2024 23:14
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.

2 participants