1import * as _ from 'lodash-es' 7 epScopes, epScopeToCfgH, allEpScopeOptA, simpleEpScopeOptA, 8 type EpScope, type SimpleEpScope, type EpScopeCfg 12// Re-export types and constants for convenience 15// Dynamic scope options based on ep type 16export const getEpScopeOptA = (): EpScope[] => { 18 return usesExplicitEpPtPaths ? simpleEpScopeOptA : allEpScopeOptA 21const getEpScopeFromArgv = (): EpScope | undefined => cliArg(epScopeKey) as EpScope | undefined 23export const getEpCfg = ({defaultEpScope = epScopes.alljs}: {defaultEpScope?: EpScope} = {}): EpScopeCfg => { 24 const epScope = getEpScopeFromArgv() || defaultEpScope 25 const epCfg = epScopeToCfgH[epScope] 30export const printEpScopeHint = ({defaultEpScope = epScopes.alljs}: {defaultEpScope?: EpScope} = {}) => { 31 const activeScope = getEpScopeFromArgv() || defaultEpScope 32 const optA = getEpScopeOptA() 33 const parts = _.map(optA, scope => scope === activeScope ? chalkGreen(scope) : scope)