-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Install with no arguments #576
Conversation
Use temporary package.json files. This is groundwork for: - Pluggable npm clients (yarn). - A `lerna upgrade` command. This is a port of asini/asini#45.
// Return a tuple like ["foo", "^1.0.0"]. | ||
// Handles scoped packages. | ||
// Returns undefined for version if none specified. | ||
static splitVersion(dep) { |
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 share @rygine's enthusiasm for regexes, but it seems that you could write tests for splitVersion directly that verified that it works as intended, which would make me feel much better.
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.
Good call. Added some tests.
@@ -39,6 +39,16 @@ export default class FileSystemUtilities { | |||
fs.writeFile(filePath, ensureEndsWithNewLine(fileContents), callback); | |||
} | |||
|
|||
@logger.logifyAsync() |
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.
It seems like most FileSystemUtilities have tests; seems worthwhile to add some for these as well.
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.
Another good call. Added some more tests.
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Use temporary package.json files.
This is groundwork for:
lerna upgrade
command.This is a port of asini/asini#45. Please see original PR commentary during review.