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

Add --ignore-scripts flag to bootstrap command #1227

Merged
merged 2 commits into from
Jan 21, 2018

Conversation

Andarist
Copy link
Contributor

Description

This is quite a simple change - as in the title of the PR.

Motivation and Context

Fixes #1178 . Our packages have configured lifecycle scripts, but having them ran during bootstrap in monorepo only takes time for us. We later use source files between packages within webpack, jest etc (by aliasing packages).

How Has This Been Tested?

Snapshot test was added.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link
Member

@evocateur evocateur left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -228,7 +229,7 @@ class BootstrapCommand extends Command {
}

/**
* Run the "prepublish" NPM script in all bootstrapped packages
* Run the "prepare" NPM script in all bootstrapped packages
Copy link
Member

Choose a reason for hiding this comment

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

hah, whoops

@evocateur evocateur changed the title Added support for --ignore-scripts flag in bootstrap command Add --ignore-scripts flag to bootstrap command Jan 21, 2018
@evocateur evocateur merged commit 75bb363 into lerna:master Jan 21, 2018
@Andarist Andarist deleted the ignore-scripts-support branch January 21, 2018 01:18
@Andarist
Copy link
Contributor Author

@evocateur any chance to have this landed in v2 line?

@evocateur
Copy link
Member

@Andarist Yep, alread done (not published yet): 0ec3bef

@scisco
Copy link

scisco commented Feb 6, 2018

@evocateur do you know when this PR is going to be published?

@evocateur
Copy link
Member

@lock
Copy link

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.

Bootstrap --skip-npm support
3 participants