mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-03 21:19:44 -06:00
feat: set up auto prs for snapshot metafile changes (#25052)
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com> Co-authored-by: Ryan Manuel <ryanm@cypress.io> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
const fs = require('fs-extra')
|
||||
const path = require('path')
|
||||
const { consolidateDeps } = require('@tooling/v8-snapshot')
|
||||
const { consolidateDeps, getSnapshotCacheDir } = require('@tooling/v8-snapshot')
|
||||
const del = require('del')
|
||||
const esbuild = require('esbuild')
|
||||
const snapshotMetadata = require('@tooling/v8-snapshot/cache/prod-darwin/snapshot-meta.cache.json')
|
||||
const tempDir = require('temp-dir')
|
||||
const workingDir = path.join(tempDir, 'binary-cleanup-workdir')
|
||||
|
||||
@@ -158,6 +157,7 @@ const buildEntryPointAndCleanup = async (buildAppDir) => {
|
||||
])
|
||||
|
||||
// 3. Gather the dependencies that could potentially be removed from the binary due to being in the snapshot or in the entry point bundle
|
||||
const snapshotMetadata = require(path.join(getSnapshotCacheDir(), 'snapshot-meta.json'))
|
||||
const potentiallyRemovedDependencies = [
|
||||
...snapshotMetadata.healthy,
|
||||
...snapshotMetadata.deferred,
|
||||
|
||||
Reference in New Issue
Block a user