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 seperate logic for rebuilding with yarn #341

wants to merge 1 commit into from


Copy link

@kauffecup kauffecup commented Nov 11, 2016

From the Migrating from npm docs, we can see that we should use:

yarn install --force

Instead of

npm rebuild

When rebuilding. This PR handles this!

Copy link

@hunterloftis hunterloftis commented Dec 15, 2016

Thanks for opening a PR!

We allow checking in node_modules with npm because npm doesn't have a reliable way to force deterministic dependencies. However, yarn does, so now that there's a workable solution we're going to be very strict about disallowing prebuilt modules.

  • if $YARN; then
    if [ -e "$BUILD_DIR/node_modules" ]; then
    warn "node_modules checked into source control" ""
    rm -rf "$BUILD_DIR/node_modules"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.