function generateInstallBazelDependencies(workspaces) {
        let bzlFile = `# Generated by the yarn_install/npm_install rule
`;
        workspaces.forEach(workspace => {
            bzlFile += `load(\":install_${workspace}.bzl\", \"install_${workspace}\")
`;
        });
        bzlFile += `def install_bazel_dependencies():
    """Installs all workspaces listed in bazelWorkspaces of all npm packages"""
`;
        workspaces.forEach(workspace => {
            bzlFile += `    install_${workspace}()
`;
        });
        writeFileSync('install_bazel_dependencies.bzl', bzlFile);
    }
/**
     * Generate install_bazel_dependencies.bzl with function to install all workspaces.
     */
Generate install_bazel_dependencies.bzl with function to install all workspaces.
Generate install_bazel_dependencies . bzl with function to install all workspaces .
function generateInstallBazelDependencies(workspaces) {
        let bzlFile = `# Generated by the yarn_install/npm_install rule
`;
        workspaces.forEach(workspace => {
            bzlFile += `load(\":install_${workspace}.bzl\", \"install_${workspace}\")
`;
        });
        bzlFile += `def install_bazel_dependencies():
    """Installs all workspaces listed in bazelWorkspaces of all npm packages"""
`;
        workspaces.forEach(workspace => {
            bzlFile += `    install_${workspace}()
`;
        });
        writeFileSync('install_bazel_dependencies.bzl', bzlFile);
    }
function generateInstallBazelDependencies ( workspaces ) { let bzlFile = ` ` ; workspaces . forEach ( workspace => { bzlFile += ` \" ${ workspace } \" \" ${ workspace } \" ` ; } ) ; bzlFile += ` ` ; workspaces . forEach ( workspace => { bzlFile += ` ${ workspace } ` ; } ) ; writeFileSync ( 'install_bazel_dependencies.bzl' , bzlFile ) ; }
Generate install_bazel_dependencies.bzl with function to install all workspaces.
Generate install_bazel_dependencies . bzl with function to install all workspaces .