UNPKG

electron-forge

Version:

A complete tool for building modern Electron applications

12 lines (9 loc) 432 B
const fs = require('fs'); const path = require('path'); const { findActualExecutable, spawnPromise } = require('spawn-rx'); const tabtabPath = path.resolve(__dirname, './node_modules/.bin/tabtab'); if (!fs.existsSync(path.resolve(__dirname, 'src'))) { spawnPromise(findActualExecutable(tabtabPath).cmd, ['install', '--auto'], { stdio: 'inherit', }).catch(err => console.error('Failed to install tab completion:', err)); }