Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/build/src/npm-packages/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ export function publishToNpm(
},
};

// There seems to be a bug where lerna does not run prepublish topologically
// during the publish step, causing build errors. This ensures all packages are topologically
// compiled beforehand.
spawnSync(LERNA_BIN, ['run', 'prepublish', '--sort'], commandOptions);

// Lerna requires a clean repository for a publish from-package
// we use git update-index --assume-unchanged on files we know have been bumped
spawnSync(
Expand Down
Loading