MCPcopy Create free account
hub / github.com/cypress-io/cypress / getBinaryByteNodeEntryPointSource

Function getBinaryByteNodeEntryPointSource

scripts/binary/binary-sources.js:29–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29const getBinaryByteNodeEntryPointSource = async () => {
30 const esbuildResult = await esbuild.build({
31 entryPoints: [require.resolve('./binary-byte-node-entry-point-source.js')],
32 bundle: true,
33 platform: 'node',
34 write: false,
35 minify: true,
36 treeShaking: true,
37 })
38
39 return esbuildResult.outputFiles[0].text
40}
41
42const getIntegrityCheckSource = (baseDirectory) => {
43 const fileSource = read('binary-integrity-check-source.js')

Callers 1

after-pack-hook.jsFile · 0.85

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected