noderuntimepeers

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package noderuntimepeers generates the host peer packages of the Node runtime archive: package.json and entry modules under runtime-node/harness/node_modules. The generator writes them into the archive and the archive test recomputes them, so both use this one table.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostPeerFiles

func HostPeerFiles(version string, sources map[string][]byte) ([]noderuntimepack.File, error)

HostPeerFiles returns the generated package.json and entry modules of every host peer, under runtime-node/harness/node_modules. sources maps each runtime path (relative to runtime-node) to its bytes. An entry re-exports its module's named exports and, when the module has one, its default export, which `export *` does not carry.

func Targets

func Targets() []string

Targets returns every runtime module the host peers re-export, in sorted order; a pattern target keeps its "*". A runtime tree the generator accepts has each plain target, and the generator expands each pattern over the modules the tree has under it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL