chore(misc): add installation source for packages that install nx cloud (#10784)
This commit is contained in:
parent
4b857167cd
commit
8f082d293c
@ -271,7 +271,9 @@ function runInstall(repoRoot: string) {
|
||||
|
||||
function initCloud(repoRoot: string) {
|
||||
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],
|
||||
}
|
||||
|
||||
@ -796,7 +796,7 @@ async function setupNxCloud(name: string, packageManager: PackageManager) {
|
||||
try {
|
||||
const pmc = getPackageManagerCommand(packageManager);
|
||||
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))
|
||||
);
|
||||
nxCloudSpinner.succeed('NxCloud has been set up successfully');
|
||||
|
||||
@ -23,7 +23,12 @@ export async function promptForNxCloud(): Promise<boolean> {
|
||||
}
|
||||
|
||||
export function initNxCloud(): void {
|
||||
execSync(`${getPackageManagerCommand().exec} nx g @nrwl/nx-cloud:init`, {
|
||||
stdio: [0, 1, 2],
|
||||
});
|
||||
execSync(
|
||||
`${
|
||||
getPackageManagerCommand().exec
|
||||
} nx g @nrwl/nx-cloud:init --installationSource=make-angular-cli-faster`,
|
||||
{
|
||||
stdio: [0, 1, 2],
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user