Files
workdsh/dsh-plugin-desktop/scripts/electron-builder-environment.ts

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',
}
}