function printPackageBin(pkg) {
        let result = '';
        const executables = _findExecutables(pkg);
        if (executables.size) {
            result = `load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")

`;
            const data = [`//${pkg._dir}:${pkg._name}`];
            if (pkg._dynamicDependencies) {
                data.push(...pkg._dynamicDependencies);
            }
            for (const [name, path] of executables.entries()) {
                result += `# Wire up the \`bin\` entry \`${name}\`
nodejs_binary(
    name = "${name}",
    entry_point = "//:node_modules/${pkg._dir}/${path}",
    install_source_map_support = False,
    data = [${data.map(p => `"${p}"`).join(', ')}],${additionalAttributes(pkg, name)}
)
`;
            }
        }
        return result;
    }
/**
     * Given a pkg, return the skylark nodejs_binary targets for the package.
     */
Given a pkg, return the skylark nodejs_binary targets for the package.
Given a pkg return the skylark nodejs_binary targets for the package .
function printPackageBin(pkg) {
        let result = '';
        const executables = _findExecutables(pkg);
        if (executables.size) {
            result = `load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
`;
            const data = [`//${pkg._dir}:${pkg._name}`];
            if (pkg._dynamicDependencies) {
                data.push(...pkg._dynamicDependencies);
            }
            for (const [name, path] of executables.entries()) {
                result += `# Wire up the \`bin\` entry \`${name}\`
nodejs_binary(
    name = "${name}",
    entry_point = "//:node_modules/${pkg._dir}/${path}",
    install_source_map_support = False,
    data = [${data.map(p => `"${p}"`).join(', ')}],${additionalAttributes(pkg, name)}
)
`;
            }
        }
        return result;
    }
function printPackageBin ( pkg ) { let result = '' ; const executables = _findExecutables ( pkg ) ; if ( executables . size ) { result = ` ` ; const data = [ ` ${ pkg . _dir } ${ pkg . _name } ` ] ; if ( pkg . _dynamicDependencies ) { data . push ( ... pkg . _dynamicDependencies ) ; } for ( const [ name , path ] of executables . entries ( ) ) { result += ` \` \` \` ${ name } \` ${ name } ${ pkg . _dir } ${ path } ${ data . map ( p => ` ${ p } ` ) . join ( ', ' ) } ${ additionalAttributes ( pkg , name ) } ` ; } } return result ; }
Given a pkg, return the skylark nodejs_binary targets for the package.
Given a pkg return the skylark nodejs_binary targets for the package .