chore: binary build cleanup (#26627)

This commit is contained in:
Emily Rohrbough
2023-05-01 14:16:34 -05:00
committed by GitHub
parent 4c45e2eb34
commit 4dd4183624
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -71,12 +71,12 @@ windowsWorkflowFilters: &windows-workflow-filters
or:
- equal: [ develop, << pipeline.git.branch >> ]
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
- equal: [ 'windows-flake', << pipeline.git.branch >> ]
- equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
- equal: [ 'ryanm/feat/unify-cdp-approach-in-electron', << pipeline.git.branch >> ]
- matches:
pattern: /^release\/\d+\.\d+\.\d+$/
value: << pipeline.git.branch >>
executors:
# the Docker image with Cypress dependencies and Chrome browser
cy-doc:
+4 -3
View File
@@ -98,7 +98,7 @@ export async function buildCypressApp (options: BuildCypressAppOpts) {
if (!keepBuild) {
log('#buildPackages')
await execa('yarn', ['lerna', 'run', 'build-prod', '--ignore', 'cli', '--concurrency', '1'], {
await execa('yarn', ['lerna', 'run', 'build-prod', '--ignore', 'cli', '--concurrency', '4'], {
stdio: 'inherit',
cwd: CY_ROOT_DIR,
})
@@ -180,10 +180,12 @@ require('./packages/server/index.js')
`)
// removeTypeScript
log('#remove typescript files and devDep patches')
await del([
// include ts files of packages
meta.distDir('**', '*.ts'),
// remove dev dep patches
meta.distDir('**', '*.dev.patch'),
// except those in node_modules
`!${meta.distDir('**', 'node_modules', '**', '*.ts')}`,
], { force: true })
@@ -195,7 +197,6 @@ require('./packages/server/index.js')
// transformSymlinkRequires
log('#transformSymlinkRequires')
await transformRequires(meta.distDir())
log(`#testDistVersion ${meta.distDir()}`)