mirror of
https://gh-proxy.org/https://github.com/klinsmaya/workdsh.git
synced 2026-11-10 10:27:55 +08:00
16 lines
495 B
TypeScript
16 lines
495 B
TypeScript
/** Dependency-collection policy shared by Electron Builder entry points. */
|
|
|
|
/**
|
|
* Keep the Desktop package on Electron Builder's bounded physical traversal.
|
|
* Its Yarn Berry collector delegates to `npm list --all`, which expands the
|
|
* entire root workspace instead of the selected app's runtime graph.
|
|
*/
|
|
export function electronBuilderEnvironment(
|
|
environment: NodeJS.ProcessEnv,
|
|
): NodeJS.ProcessEnv {
|
|
return {
|
|
...environment,
|
|
DSH_ELECTRON_BUILDER_TRAVERSAL_ONLY: '1',
|
|
}
|
|
}
|