Skip to content

Install with no arguments#576

Merged
doug-wade merged 3 commits intolerna:masterfrom
gigabo:naked-install
Feb 4, 2017
Merged

Install with no arguments#576
doug-wade merged 3 commits intolerna:masterfrom
gigabo:naked-install

Conversation

@gigabo
Copy link
Copy Markdown
Contributor

@gigabo gigabo commented Feb 3, 2017

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. Please see original PR commentary during review.

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.
Comment thread src/NpmUtilities.js
// Return a tuple like ["foo", "^1.0.0"].
// Handles scoped packages.
// Returns undefined for version if none specified.
static splitVersion(dep) {
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor Author

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.

fs.writeFile(filePath, ensureEndsWithNewLine(fileContents), callback);
}

@logger.logifyAsync()
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor Author

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.

@doug-wade doug-wade merged commit 3e7637e into lerna:master Feb 4, 2017
@lock
Copy link
Copy Markdown

lock Bot commented Dec 27, 2018

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.

@lock lock Bot locked as resolved and limited conversation to collaborators Dec 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants