UNPKG

disassemble-package

Version:

Separate the config contained in package.json into a file.

9 lines 375 B
import { writeFile } from 'fs/promises'; import { join } from 'path'; export const disassembleElectronBuilder = async (path, json, { space }) => { if (json.hasOwnProperty('build')) { await writeFile(join(path, 'electron-builder.json'), JSON.stringify(json.build, undefined, space)); delete json.build; } }; //# sourceMappingURL=electron-builder.js.map