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

chore: workaround lerna + npm-run-all weirdness #35595

Merged
merged 1 commit into from
May 11, 2022
Merged

Conversation

pieh
Copy link
Contributor

@pieh pieh commented May 5, 2022

Description

Ref: lerna/lerna#2145 (comment)

npm-run-all interacts "weirdly" with lerna and I suspect that script like this

"prepare": "cross-env NODE_ENV=production npm-run-all -s build typegen",

is causing to (re)run build script on every package in monorepo (as under the hood it runs lerna run build)

The weirdness doesn't happen always (confusing), but I can definitely see weird, duplicated output when publishing

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 5, 2022
@pieh pieh added type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels May 5, 2022
@LekoArts
Copy link
Contributor

@pieh can we ship this? I've run into the type problem again on the 4.14 release -.-'

@pieh pieh marked this pull request as ready for review May 10, 2022 15:32
@pieh
Copy link
Contributor Author

pieh commented May 10, 2022

@pieh can we ship this? I've run into the type problem again on the 4.14 release -.-'

Yes, I think so - I'm just sure if this is the root of the issue we are seeing

Copy link
Contributor

@LekoArts LekoArts left a comment

Choose a reason for hiding this comment

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

Let's try it with next releases

@LekoArts LekoArts merged commit 8cc0970 into master May 11, 2022
@LekoArts LekoArts deleted the lerna-npm-run-all branch May 11, 2022 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants