File tree Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 1
- const { bundle } = require ( " ./scripts/bundler" ) ;
1
+ const { bundle } = require ( ' ./scripts/bundler' )
2
2
3
3
module . exports = {
4
4
packagerConfig : {
@@ -23,15 +23,9 @@ module.exports = {
23
23
// config: {},
24
24
// },
25
25
] ,
26
- packageAfterCopy : async (
27
- /** @type {any } */ forgeConfig ,
28
- /** @type {string } */ buildPath ,
29
- /** @type {string } */ electronVersion ,
30
- /** @type {string } */ platform ,
31
- /** @type {string } */ arch ,
32
- ) => {
26
+ packageAfterCopy : async ( /** @type {any } */ forgeConfig , /** @type {string } */ buildPath ) => {
33
27
// this is a workaround until we find a proper solution
34
28
// for running electron-forge in a mono repository
35
- await bundle ( __dirname , buildPath ) ;
36
- } ,
29
+ await bundle ( __dirname , buildPath )
30
+ } ,
37
31
}
Original file line number Diff line number Diff line change 1
- // based on https://github.com/electron-userland/electron-forge/issues/2306#issuecomment-1034882039
2
- 'use strict'
3
-
4
1
/**
5
2
* @typedef {{
6
3
* new (options: { path: string }): {
@@ -57,7 +54,7 @@ const bundle = async (source, destination) => {
57
54
const sourceNode = getWorkspaceByPath ( rootNode , source )
58
55
59
56
if ( ! sourceNode ) {
60
- throw new Error ( 'couldn\'t find source node' )
57
+ throw new Error ( 'could not find source node' )
61
58
}
62
59
63
60
const prodDeps = collectProdDeps ( sourceNode )
@@ -72,4 +69,4 @@ const bundle = async (source, destination) => {
72
69
}
73
70
}
74
71
75
- module . exports = { bundle }
72
+ module . exports = { bundle }
You can’t perform that action at this time.
0 commit comments