-
Notifications
You must be signed in to change notification settings - Fork 0
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/add install packages schematic #93
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of questions added.
execSync('pnpm --version', {stdio: 'pipe'}); | ||
return 'pnmp'; | ||
} catch(e) { | ||
return 'npm'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that by default it will use npm if it doesn't find anything. What happens if npm is not installed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And one more question. What happens if several of them are installed? We're giving preference to yarn
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preference is based on the lock file. If there is no lock file, it will explore the globally installed ones. In that case, yarn
takes preference indeed. We can change it.
If the package manager is not installed, it will fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind the order. I was just wondering if it's useful to have an optional config parameter to set the preference. Or perhaps I'm suggesting nonsense! 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean to overwrite the discovered package manager?
After conversations with @inigomarquinez, we agreed not to have a schematic for installing packages. |
Description
Schematic to facilitate the installation of packages regardless of the project's package manager.
Related Issue
#95
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: