import * as rushLib from '@microsoft/rush-lib' ; import { PackageJsonLookup , Import } from '@rushstack/node-core-library' ; import { RushCommandSelector } from './RushCommandSelector' ; const builtInPluginConfigurations = [ ] ; function includePlugin ( pluginName ) { const pluginPackageName = `@rushstack/${ pluginName }` ; builtInPluginConfigurations . push ( { packageName : pluginPackageName , pluginName : pluginName , pluginPackageFolder : Import . resolvePackage ( { packageName : pluginPackageName , baseFolderPath : __dirname } ) } ) ; } includePlugin ( 'rush-amazon-s3-build-cache-plugin' ) ; includePlugin ( 'rush-azure-storage-build-cache-plugin' ) ; const currentPackageVersion = PackageJsonLookup . loadOwnPackageJson ( __dirname ) . version ; RushCommandSelector . execute ( currentPackageVersion , rushLib , { isManaged : false , alreadyReportedNodeTooNewError : false , builtInPluginConfigurations } ) ;