|
1 |
| -import * as fs from 'fs-extra'; |
2 |
| -import { readFile, writeFile, replaceInFile, prependToFile } from './fs'; |
3 |
| -import { execAndWaitForOutputToMatch, npm, silentNpm, ng, git } from './process'; |
4 |
| -import { getGlobalVariable } from './env'; |
5 |
| -import { gitCommit } from './git'; |
| 1 | +import * as fs from 'fs'; |
6 | 2 | import { prerelease } from 'semver';
|
7 | 3 | import { packages } from '../../../../lib/packages';
|
8 |
| - |
| 4 | +import { getGlobalVariable } from './env'; |
| 5 | +import { prependToFile, readFile, replaceInFile, writeFile } from './fs'; |
| 6 | +import { gitCommit } from './git'; |
| 7 | +import { execAndWaitForOutputToMatch, git, ng, npm, silentNpm } from './process'; |
9 | 8 |
|
10 | 9 | const tsConfigPath = 'tsconfig.json';
|
11 | 10 |
|
@@ -80,10 +79,10 @@ export async function prepareProjectForE2e(name) {
|
80 | 79 |
|
81 | 80 | if (argv['ng-snapshots'] || argv['ng-tag']) {
|
82 | 81 | await useSha();
|
83 |
| - } else { |
84 |
| - await writeFile('.npmrc', 'registry=http://localhost:4873'); |
85 | 82 | }
|
86 | 83 |
|
| 84 | + await writeFile('.npmrc', 'registry=http://localhost:4873'); |
| 85 | + |
87 | 86 | console.log(
|
88 | 87 | `Project ${name} created... Installing npm.`,
|
89 | 88 | );
|
|
0 commit comments