Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix issue causing a broken build.
We should probably run the build in CI (part of
npm test) as it would have surfaced the error in the original PR.The core problem was lerna wasn't filtering out workspaces we don't want to build.
Ideally we would use
npx -w packages, but NPM doesn't topologically sort and we'd have to declare each workspace in order of dependence manually. See: npm/cli#4139. NPM moves so slowly and has a general distaste - it seems - for adopting useful behavior (see pnpm), I wouldn't hold our breath. Lerna make sense for now. Hooooooowever, onto the next pointTo move away from Lerna and Yarn, we'd need to do a combo of TypeScript project references (to remove the need for
--sortwhen runningtsc) and definebuildscripts in each package that needs to build, then use `npm run build --if-present --workspaces. We really shouldn't be defining root scripts that operate on workspaces.