From 40ce291e8e0998f2cfdc348c1309cba47cabe87f Mon Sep 17 00:00:00 2001 From: ianho Date: Thu, 25 Jan 2024 16:16:37 +0800 Subject: [PATCH] fix(core): error if tmpdir is false, throw error --- packages/api/core/src/api/package.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/api/core/src/api/package.ts b/packages/api/core/src/api/package.ts index c098095955..da09e79252 100644 --- a/packages/api/core/src/api/package.ts +++ b/packages/api/core/src/api/package.ts @@ -316,6 +316,10 @@ export const listrPackage = ( }; packageOpts.quiet = true; + if (packageOpts.tmpdir === false) { + throw new Error('config.forge.packagerConfig.tmpdir is not supported to set false by Electron Forge'); + } + if (packageOpts.all) { throw new Error('config.forge.packagerConfig.all is not supported by Electron Forge'); }