mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-26 00:50:41 -05:00
chore: binary build cleanup (#26627)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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()}`)
|
||||
|
||||
Reference in New Issue
Block a user