MCPcopy
hub / github.com/desktop/desktop / getBundleSizes

Function getBundleSizes

script/dist-info.ts:101–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99}
100
101export function getBundleSizes() {
102 const outPath = Path.join(projectRoot, 'out')
103 return {
104 // eslint-disable-next-line no-sync
105 rendererBundleSize: Fs.statSync(Path.join(outPath, 'renderer.js')).size,
106 // eslint-disable-next-line no-sync
107 mainBundleSize: Fs.statSync(Path.join(outPath, 'main.js')).size,
108 }
109}
110export const isPublishable = () =>
111 ['production', 'beta', 'test'].includes(getChannel())
112

Callers 1

package.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected