Files
nexe/src/patches/gyp.js
T
2017-06-26 20:01:53 -05:00

13 lines
346 B
JavaScript

export default async function nodeGyp ({ files, replaceInFileAsync }, next) {
await next()
const nodeGypMarker = "'lib/fs.js',"
await replaceInFileAsync('node.gyp', nodeGypMarker, `
${nodeGypMarker}
${files
.filter(x => x.filename.startsWith('lib'))
.map(x => `'${x.filename}'`)
.toString()},
`.trim())
}