Skip to content

Load from generated metadata #47

@vweevers

Description

@vweevers

Rough idea: prebuildify would write a JSON file containing build metadata (platform, arch, abi, etc). A secondary tool (serving a similar role as prebuildify-ci) would collect those files and generate a binding.js to be included in your npm package. E.g.:

if (platform === 'linux' && arch === 'x64') {
  module.exports = require('./prebuilds/linux-x64/example.node')
} else {
  throw new Error('No native build was found for ...')
}

Removing the need to discover files at runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions