Skip to content

Commit 4a09f59

Browse files
authored
fix(ci): run prepublish topologically to fix auxiliary publishing (#2384)
1 parent 4994d9f commit 4a09f59

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/build/src/npm-packages/publish.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ export function publishToNpm(
1818
},
1919
};
2020

21+
// There seems to be a bug where lerna does not run prepublish topologically
22+
// during the publish step, causing build errors. This ensures all packages are topologically
23+
// compiled beforehand.
24+
spawnSync(LERNA_BIN, ['run', 'prepublish', '--sort'], commandOptions);
25+
2126
// Lerna requires a clean repository for a publish from-package
2227
// we use git update-index --assume-unchanged on files we know have been bumped
2328
spawnSync(

0 commit comments

Comments
 (0)