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 failure do to output from prepublish scripts #30

Closed
wants to merge 1 commit into from

Conversation

jtary
Copy link

@jtary jtary commented Jul 3, 2015

Change the pack file path detection to look at the end of the output to
avoid be confused by output from prepublish scripts.

connect to strongloop-internal/scrum-nodeops#766

Change the pack file path detection to look at the end of the output to
avoid be confused by output from prepublish scripts.
@jtary jtary force-pushed the fix/npm-prepublish-output branch from 35f31d0 to f50a911 Compare July 3, 2015 20:31

// the pack filename should be on the second to last line of the output.
if (outputLines.length > 1) {
return null; //outputLines[outputLines.length - 2];
Copy link
Member

Choose a reason for hiding this comment

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

Always return null?

@rmg
Copy link
Member

rmg commented Jul 3, 2015

I wonder if instead of trying to parse the output to get the name we should just check the exit code and then generate the filename ourselves using the name and version from the package.json in the current directory.

@sam-github
Copy link
Contributor

https://github.com/strongloop/strong-arc/blob/e74287480af5aa17d79abc31aca1067c6278805c/build-deploy/common/models/build.js#L115-L118

I agree, there isn't any reason to parse the packfile name from npm build output.

@sam-github
Copy link
Contributor

@jtary thanks for finding this, I hope it wasn't too horrible to track down.

I'll get this fixed, but use the non-parsing approach.

@sam-github sam-github closed this Jul 7, 2015
@sam-github sam-github removed the #review label Jul 7, 2015
@sam-github sam-github deleted the fix/npm-prepublish-output branch July 7, 2015 04:18
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.

None yet

3 participants