chore(misc): add installation source for packages that install nx cloud (#10784)

This commit is contained in:
Altan Stalker 2022-06-23 19:13:41 -04:00 committed by GitHub
parent 4b857167cd
commit 8f082d293c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 5 deletions

View File

@ -271,7 +271,9 @@ function runInstall(repoRoot: string) {
function initCloud(repoRoot: string) { function initCloud(repoRoot: string) {
execSync( execSync(
`${getPackageManagerCommand(repoRoot).exec} nx g @nrwl/nx-cloud:init`, `${
getPackageManagerCommand(repoRoot).exec
} nx g @nrwl/nx-cloud:init --installationSource=add-nx-to-monorepo`,
{ {
stdio: [0, 1, 2], stdio: [0, 1, 2],
} }

View File

@ -796,7 +796,7 @@ async function setupNxCloud(name: string, packageManager: PackageManager) {
try { try {
const pmc = getPackageManagerCommand(packageManager); const pmc = getPackageManagerCommand(packageManager);
const res = await execAndWait( const res = await execAndWait(
`${pmc.exec} nx g @nrwl/nx-cloud:init --no-analytics`, `${pmc.exec} nx g @nrwl/nx-cloud:init --no-analytics --installationSource=create-nx-workspace`,
path.join(process.cwd(), getFileName(name)) path.join(process.cwd(), getFileName(name))
); );
nxCloudSpinner.succeed('NxCloud has been set up successfully'); nxCloudSpinner.succeed('NxCloud has been set up successfully');

View File

@ -23,7 +23,12 @@ export async function promptForNxCloud(): Promise<boolean> {
} }
export function initNxCloud(): void { export function initNxCloud(): void {
execSync(`${getPackageManagerCommand().exec} nx g @nrwl/nx-cloud:init`, { execSync(
`${
getPackageManagerCommand().exec
} nx g @nrwl/nx-cloud:init --installationSource=make-angular-cli-faster`,
{
stdio: [0, 1, 2], stdio: [0, 1, 2],
}); }
);
} }