How to use the @electron-forge/core.api.import function in @electron-forge/core

To help you get started, we’ve selected a few @electron-forge/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github electron-userland / electron-forge / packages / api / cli / src / electron-forge-import.ts View on Github external
(async () => {
  let dir = process.cwd();
  program
    .version((await fs.readJson(path.resolve(__dirname, '../package.json'))).version)
    .arguments('[name]')
    .action((name) => { dir = workingDir(dir, name, false); })
    .parse(process.argv);

  await api.import({
    dir,
    interactive: true,
  });
})();