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

fix(build) buildup/builddown: Ensure lerna is on PATH #3094

Merged
merged 3 commits into from
Jun 27, 2019

Conversation

spg
Copy link
Contributor

@spg spg commented Jun 26, 2019

When running builddup or builddown from within a package directory (e.g. aws-cdk/packages/@aws-cdk/aws-sns-subscriptions), lerna was never found:

» ../../../scripts/buildup
../../../scripts/buildup: line 9: exec: lerna: not found

This PR makes sure the lerna bin included with the CDK is added to PATH.


Please read the contribution guidelines and follow the pull-request checklist.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@spg spg requested a review from a team as a code owner June 26, 2019 22:40
@ghost ghost requested a review from rix0rrr June 26, 2019 22:40
export NODE_OPTIONS="--max-old-space-size=4096 ${NODE_OPTIONS:-}"

scriptdir=$(cd $(dirname $0) && pwd)
export PATH=$(cd $scriptdir && npm bin):$PATH
Copy link
Contributor

Choose a reason for hiding this comment

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

You probably want scriptdir/..

@eladb eladb merged commit 71ad83d into aws:master Jun 27, 2019
@spg spg deleted the fix-buildup-path branch June 27, 2019 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants