@@ -385,7 +385,7 @@ export default class extends Generator {
385385 }
386386
387387 async install ( ) : Promise < void > {
388- if ( ! this . shouldInstallDeps || this . shouldCreateExtProject || this . isCfEnv ) {
388+ if ( ! this . shouldInstallDeps || this . shouldCreateExtProject ) {
389389 return ;
390390 }
391391
@@ -397,7 +397,7 @@ export default class extends Generator {
397397 }
398398
399399 async end ( ) : Promise < void > {
400- if ( this . shouldCreateExtProject || this . isCfEnv ) {
400+ if ( this . shouldCreateExtProject ) {
401401 return ;
402402 }
403403
@@ -413,7 +413,7 @@ export default class extends Generator {
413413 } ) ;
414414 }
415415
416- if ( this . isCli ) {
416+ if ( this . isCli || this . isCfEnv ) {
417417 return ;
418418 }
419419
@@ -537,7 +537,7 @@ export default class extends Generator {
537537 * Generates the ADP project artifacts for the CF environment.
538538 */
539539 private async _generateAdpProjectArtifactsCF ( ) : Promise < void > {
540- const projectPath = this . isMtaYamlFound ? process . cwd ( ) : this . destinationPath ( ) ;
540+ const projectPath = this . destinationPath ( ) ;
541541 const publicVersions = await fetchPublicVersions ( this . logger ) ;
542542
543543 const manifest = this . cfPrompter . manifest ;
@@ -576,6 +576,9 @@ export default class extends Generator {
576576 * @returns {string } The project path from the answers.
577577 */
578578 private _getProjectPath ( ) : string {
579+ if ( this . isCfEnv ) {
580+ return join ( this . destinationPath ( ) , this . attributeAnswers . projectName ) ;
581+ }
579582 return join ( this . attributeAnswers . targetFolder , this . attributeAnswers . projectName ) ;
580583 }
581584
0 commit comments