"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/legacy-cli/e2e/utils/packages.ts" between
angular-cli-12.1.2.tar.gz and angular-cli-12.1.3.tar.gz

About: Angular CLI is a command line interface for Angular.

packages.ts  (angular-cli-12.1.2):packages.ts  (angular-cli-12.1.3)
skipping to change at line 56 skipping to change at line 56
? getGlobalVariable('package-registry') ? getGlobalVariable('package-registry')
: 'https://registry.npmjs.org'; : 'https://registry.npmjs.org';
const isCI = getGlobalVariable('ci'); const isCI = getGlobalVariable('ci');
// Ensure local test registry is used when outside a project // Ensure local test registry is used when outside a project
if (isCI) { if (isCI) {
// Safe to set a user configuration on CI // Safe to set a user configuration on CI
await npm('config', 'set', 'registry', url); await npm('config', 'set', 'registry', url);
} else { } else {
// Yarn does not use the environment variable so an .npmrc file is also requ // Yarn supports both `NPM_CONFIG_REGISTRY` and `YARN_REGISTRY`.
ired
await writeFile('.npmrc', `registry=${url}`);
process.env['NPM_CONFIG_REGISTRY'] = url; process.env['NPM_CONFIG_REGISTRY'] = url;
} }
} }
 End of changes. 1 change blocks. 
3 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)