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: node_modules created on current dir #290

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

fmvilas
Copy link
Member

@fmvilas fmvilas commented Apr 8, 2020

Description
It was creating a node_modules directory on the directory the command was executed. It's fixed now.

Related issue(s)
Fixes #289

@fmvilas fmvilas requested review from derberg and jonaslagoni April 8, 2020 17:35
@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 8, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@fmvilas
Copy link
Member Author

fmvilas commented Apr 8, 2020

FYI @Mrc0113

@@ -305,6 +305,7 @@ class Generator {
npmi({
name: this.templateName,
install: force,
path: ROOT_DIR,
Copy link
Member Author

Choose a reason for hiding this comment

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

To clarify: ROOT_DIR is the directory where the library is currently installed. It's not the system's root dir 😄

Copy link
Member

Choose a reason for hiding this comment

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

makes sense and npmi default is path: '.'

Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

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

LGTM 🚢 🇮🇹

@fmvilas fmvilas merged commit 532fa9e into asyncapi:master Apr 8, 2020
@fmvilas fmvilas deleted the fix-bug-node-modules branch April 8, 2020 18:12
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 0.36.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not create node_modules directory
3 participants