MCPcopy
hub / github.com/electron/forge / ImportOptions

Interface ImportOptions

packages/api/core/src/api/import.ts:34–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32const d = debug('electron-forge:import');
33
34export interface ImportOptions {
35 /**
36 * The path to the app to be imported
37 */
38 dir?: string;
39 /**
40 * Whether to use sensible defaults or prompt the user visually
41 */
42 interactive?: boolean;
43 /**
44 * An async function that returns true or false in order to confirm the start
45 * of importing
46 */
47 confirmImport?: () => Promise<boolean>;
48 /**
49 * An async function that returns whether the import should continue if it
50 * looks like a forge project already
51 */
52 shouldContinueOnExisting?: () => Promise<boolean>;
53 /**
54 * An async function that returns whether the given dependency should be removed
55 */
56 shouldRemoveDependency?: (
57 dependency: string,
58 explanation: string,
59 ) => Promise<boolean>;
60 /**
61 * An async function that returns whether the given script should be overridden with a forge one
62 */
63 shouldUpdateScript?: (
64 scriptName: string,
65 newValue: string,
66 ) => Promise<boolean>;
67 /**
68 * The path to the directory containing generated distributables
69 */
70 outDir?: string;
71 /**
72 * By default, Forge initializes a git repository in the project directory. Set this option to `true` to skip this step.
73 */
74 skipGit?: boolean;
75}
76
77export default autoTrace(
78 { name: 'import()', category: '@electron-forge/core' },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected