MCPcopy
hub / github.com/desktop/desktop / filterExternals

Function filterExternals

script/build.ts:305–308  ·  view source on GitHub ↗
(dependencies: Record<string, string>)

Source from the content-addressed store, hash-verified

303 const pkg: Package = require(path.join(projectRoot, 'app', 'package.json'))
304
305 const filterExternals = (dependencies: Record<string, string>) =>
306 Object.fromEntries(
307 Object.entries(dependencies).filter(([k]) => externals.includes(k))
308 )
309
310 // The product name changes depending on whether it's a prod build or dev
311 // build, so that we can have them running side by side.

Callers 1

copyDependenciesFunction · 0.85

Calls 1

filterMethod · 0.65

Tested by

no test coverage detected