mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-05 22:40:49 -05:00
fix: build-prod-ui deps before build-prod packages
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user