MCPcopy Index your code
hub / github.com/angular/angular-cli / setRegistry

Function setRegistry

tests/e2e/utils/packages.ts:71–79  ·  view source on GitHub ↗
(useTestRegistry: boolean)

Source from the content-addressed store, hash-verified

69}
70
71export async function setRegistry(useTestRegistry: boolean): Promise<void> {
72 const url = useTestRegistry
73 ? getGlobalVariable('package-registry')
74 : 'https://registry.npmjs.org';
75
76 // Ensure local test registry is used when outside a project
77 // Yarn supports both `NPM_CONFIG_REGISTRY` and `YARN_REGISTRY`.
78 process.env['NPM_CONFIG_REGISTRY'] = url;
79}

Callers 2

createProjectFromAssetFunction · 0.90

Calls 1

getGlobalVariableFunction · 0.90

Tested by

no test coverage detected