Skip to content

Commit a8bcafc

Browse files
committed
fix(desk): lint errors
1 parent 92a9fb1 commit a8bcafc

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

packages/desktop/forge.config.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { bundle } = require("./scripts/bundler");
1+
const { bundle } = require('./scripts/bundler')
22

33
module.exports = {
44
packagerConfig: {
@@ -23,15 +23,9 @@ module.exports = {
2323
// config: {},
2424
// },
2525
],
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) => {
3327
// this is a workaround until we find a proper solution
3428
// for running electron-forge in a mono repository
35-
await bundle(__dirname, buildPath);
36-
},
29+
await bundle(__dirname, buildPath)
30+
},
3731
}

packages/desktop/scripts/bundler.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// based on https://github.com/electron-userland/electron-forge/issues/2306#issuecomment-1034882039
2-
'use strict'
3-
41
/**
52
* @typedef {{
63
* new (options: { path: string }): {
@@ -57,7 +54,7 @@ const bundle = async (source, destination) => {
5754
const sourceNode = getWorkspaceByPath(rootNode, source)
5855

5956
if (!sourceNode) {
60-
throw new Error('couldn\'t find source node')
57+
throw new Error('could not find source node')
6158
}
6259

6360
const prodDeps = collectProdDeps(sourceNode)
@@ -72,4 +69,4 @@ const bundle = async (source, destination) => {
7269
}
7370
}
7471

75-
module.exports = { bundle }
72+
module.exports = { bundle }

0 commit comments

Comments
 (0)