fix: build-prod-ui deps before build-prod packages

This commit is contained in:
Tim Griesser
2021-11-16 10:23:02 -05:00
parent 651b91b247
commit 8eaebc3d16
5 changed files with 10 additions and 4 deletions
+4 -1
View File
@@ -113,7 +113,10 @@ const buildCypressApp = function (platform, version, options = {}) {
const buildPackages = function () {
log('#buildPackages')
return packages.runAllBuild()
return packages.runAllBuildUI().then(() => {
return packages.runAllBuild()
})
// Promise.resolve()
.then((val) => {
logBuiltAllPackages(val)
+3
View File
@@ -50,6 +50,7 @@ const createCLIExecutable = (command) => {
const yarn = createCLIExecutable('yarn')
const npx = createCLIExecutable('npx')
const runAllBuildUI = _.partial(npx, ['lerna', 'run', 'build-prod-ui'])
const runAllBuild = _.partial(npx, ['lerna', 'run', 'build-prod', '--ignore', 'cli'])
// removes transpiled JS files in the original package folders
@@ -271,6 +272,8 @@ const npmInstallAll = function (pathToPackages) {
}
module.exports = {
runAllBuildUI,
runAllBuild,
copyAllToDist,