For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/lynxtron/api/@lynx-js/lynxtron-rebuild/index.md.
  • English
  • @lynx-js/lynxtron-rebuild

    @lynx-js/lynxtron-rebuild rebuilds npm Node.js native modules for the Lynxtron runtime ABI. It corresponds to @electron/rebuild in the Electron ecosystem, but targets the Lynxtron runtime.

    Install

    npm install -D @lynx-js/lynxtron-rebuild

    Usage

    npx @lynx-js/lynxtron-rebuild

    Run it after installing or updating native modules, and verify the rebuilt artifacts before packaging the app.

    When To Use It

    ScenarioRequired
    Pure JavaScript npm packagesNo rebuild required
    npm native modules that contain .node binariesUse @lynx-js/lynxtron-rebuild
    Native modules migrated from an Electron projectRebuild from the Electron ABI to the Lynxtron runtime ABI
    Lynx native librariesUsually built through npm run build:shared instead of lynxtron-rebuild

    For more details, see Node.js Native Modules.

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.