|
|
@@ -165,6 +165,7 @@ export function installPackages(
|
|
|
dependencies: string[],
|
|
|
isDev: boolean,
|
|
|
logLevel: CliLogLevel,
|
|
|
+ isCi: boolean = false,
|
|
|
): Promise<void> {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
let command: string;
|
|
|
@@ -175,6 +176,14 @@ export function installPackages(
|
|
|
if (isDev) {
|
|
|
args.push('--dev');
|
|
|
}
|
|
|
+ if (isCi) {
|
|
|
+ // In CI, publish to Verdaccio
|
|
|
+ // See https://github.com/yarnpkg/yarn/issues/6029
|
|
|
+ args.push('--registry http://localhost:4873/');
|
|
|
+ // Increase network timeout
|
|
|
+ // See https://github.com/yarnpkg/yarn/issues/4890#issuecomment-358179301
|
|
|
+ args.push('--network-timeout 300000');
|
|
|
+ }
|
|
|
args = args.concat(dependencies);
|
|
|
|
|
|
// Explicitly set cwd() to work around issues like
|
|
|
@@ -214,12 +223,13 @@ export function installPackages(
|
|
|
export function getDependencies(
|
|
|
usingTs: boolean,
|
|
|
dbType: DbType,
|
|
|
+ vendurePkgVersion = '',
|
|
|
): { dependencies: string[]; devDependencies: string[] } {
|
|
|
const dependencies = [
|
|
|
- '@vendure/core',
|
|
|
- '@vendure/email-plugin',
|
|
|
- '@vendure/asset-server-plugin',
|
|
|
- '@vendure/admin-ui-plugin',
|
|
|
+ `@vendure/core${vendurePkgVersion}`,
|
|
|
+ `@vendure/email-plugin${vendurePkgVersion}`,
|
|
|
+ `@vendure/asset-server-plugin${vendurePkgVersion}`,
|
|
|
+ `@vendure/admin-ui-plugin${vendurePkgVersion}`,
|
|
|
dbDriverPackage(dbType),
|
|
|
];
|
|
|
const devDependencies = ['concurrently'];
|