diff --git a/packages/maker/msix/src/Config.ts b/packages/maker/msix/src/Config.ts index 0f1353710c..b418c9f206 100644 --- a/packages/maker/msix/src/Config.ts +++ b/packages/maker/msix/src/Config.ts @@ -1,4 +1,4 @@ -import { PackagingOptions } from 'electron-windows-msix'; +import { PackagingOptions as MSIXPackagingOptions } from 'electron-windows-msix'; /** * The configuration object for the MSIX maker. @@ -7,4 +7,7 @@ import { PackagingOptions } from 'electron-windows-msix'; * * @see https://github.com/bitdisaster/electron-windows-msix/blob/master/src/types.ts */ -export type MakerMsixConfig = Omit; +export type MakerMSIXConfig = Omit< + MSIXPackagingOptions, + 'outputDir' | 'appDir' +>; diff --git a/packages/maker/msix/src/MakerMSIX.ts b/packages/maker/msix/src/MakerMSIX.ts index 89d39a3c55..e8f8e02b5e 100644 --- a/packages/maker/msix/src/MakerMSIX.ts +++ b/packages/maker/msix/src/MakerMSIX.ts @@ -3,14 +3,14 @@ import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { ForgePlatform } from '@electron-forge/shared-types'; import { packageMSIX } from 'electron-windows-msix'; -import { MakerMsixConfig } from './Config'; +import { MakerMSIXConfig } from './Config'; import { toMsixArch } from './util/arch'; /** * Creates an MSIX package for your Electron app. * @experimental */ -export default class MakerMsix extends MakerBase { +export default class MakerMSIX extends MakerBase { name = 'msix'; defaultPlatforms: ForgePlatform[] = ['win32']; @@ -47,3 +47,5 @@ export default class MakerMsix extends MakerBase { return [result.msixPackage]; } } + +export { MakerMSIX, MakerMSIXConfig };