We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c100186 commit c9da714Copy full SHA for c9da714
1 file changed
packages/api/core/src/util/parse-archs.ts
@@ -1,8 +1,5 @@
1
import { ForgeArch, ForgePlatform } from '@electron-forge/shared-types';
2
-
3
-// TODO: convert to an import statement when this is a public API
4
-// eslint-disable-next-line @typescript-eslint/no-var-requires
5
-const { allOfficialArchsForPlatformAndVersion } = require('@electron/packager/src/targets');
+import { allOfficialArchsForPlatformAndVersion } from '@electron/packager';
6
7
export default function parseArchs(platform: ForgePlatform | string, declaredArch: ForgeArch | 'all' | string, electronVersion: string): ForgeArch[] {
8
if (declaredArch === 'all') {
0 commit comments