File tree 3 files changed +10
-2
lines changed
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " app-builder-lib " : patch
3
+ " electron-builder " : patch
4
+ ---
5
+
6
+ fix: add back missing ` createLazyProductionDeps ` that was missed during revert
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ function isRunningYarn(execPath: string | null | undefined) {
153
153
154
154
export interface RebuildOptions {
155
155
frameworkInfo : DesktopFrameworkInfo
156
- productionDeps ? : Lazy < Array < NodeModuleDirInfo > >
156
+ productionDeps : Lazy < Array < NodeModuleDirInfo > >
157
157
158
158
platform ?: NodeJS . Platform
159
159
arch ?: string
@@ -166,7 +166,7 @@ export interface RebuildOptions {
166
166
/** @internal */
167
167
export async function rebuild ( appDir : string , options : RebuildOptions ) {
168
168
const configuration : any = {
169
- dependencies : await options . productionDeps ! . value ,
169
+ dependencies : await options . productionDeps . value ,
170
170
nodeExecPath : process . execPath ,
171
171
platform : options . platform || process . platform ,
172
172
arch : options . arch || process . arch ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { getElectronVersion } from "app-builder-lib/out/electron/electronVersion
4
4
import { computeDefaultAppDirectory , getConfig } from "app-builder-lib/out/util/config"
5
5
import { installOrRebuild } from "app-builder-lib/out/util/yarn"
6
6
import { PACKAGE_VERSION } from "app-builder-lib/out/version"
7
+ import { createLazyProductionDeps } from "app-builder-lib/src/util/packageDependencies"
7
8
import { getArchCliNames , log , use } from "builder-util"
8
9
import { printErrorAndExit } from "builder-util/out/promise"
9
10
import { readJson } from "fs-extra"
@@ -62,6 +63,7 @@ export async function installAppDeps(args: any) {
62
63
frameworkInfo : { version, useCustomDist : true } ,
63
64
platform : args . platform ,
64
65
arch : args . arch ,
66
+ productionDeps : createLazyProductionDeps ( appDir , null ) ,
65
67
} ,
66
68
appDir !== projectDir
67
69
)
You can’t perform that action at this time.
0 commit comments