@douglasneuroinformatics/libnest
    Preparing search index...

    Type Alias NativeDependency

    A dependency that loads a native artifact through a path relative to its own source, and so cannot survive being bundled. The artifact is emitted beside the bundle, and the package is pointed back at it by an environment variable set before the application starts.

    type NativeDependency = {
        locate: (context: NativeDependencyContext) => Promisable<string>;
        outputName: string;
        packageName: string;
        runtimeEnvVar: string;
    }
    Index

    Properties

    locate: (context: NativeDependencyContext) => Promisable<string>

    Returns the absolute path of the artifact to emit.

    outputName: string

    The filename to write into the output directory, beside the bundle.

    packageName: string

    The bare specifier the application imports, e.g. esbuild.

    runtimeEnvVar: string

    The environment variable the package reads at runtime to locate its artifact.