(nativeExportNames)
| 19 | } |
| 20 | |
| 21 | function buildIndexJs(nativeExportNames) { |
| 22 | const originalSource = readFileSync('./index.js', 'utf-8'); |
| 23 | const exportStatements = nativeExportNames.map((name) => `module.exports.${name} = nativeBinding.${name}`).join('\n'); |
| 24 | |
| 25 | return `${originalSource.split(EXPORT_MARKER)[0].trimEnd()}\n |
| 26 | ${EXPORT_MARKER} |
| 27 | ${exportStatements} |
| 28 | `; |
| 29 | } |
| 30 | |
| 31 | function postbuild() { |
| 32 | const jsBindings = readFileSync('./js-bindings.js', 'utf-8'); |
no outgoing calls
no test coverage detected
searching dependent graphs…