File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/commands/lightning/dev Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
1111import { Messages , SfProject } from '@salesforce/core' ;
1212import { cmpDev } from '@lwrjs/api' ;
1313import { ComponentUtils } from '../../../shared/componentUtils.js' ;
14- import { PromptUtils } from '../../../shared/promptUtils.js' ;
1514
1615Messages . importMessagesDirectoryFromMetaUrl ( import . meta. url ) ;
1716const messages = Messages . loadMessages ( '@salesforce/plugin-lightning-dev' , 'lightning.dev.component' ) ;
@@ -79,12 +78,6 @@ export default class LightningDevComponent extends SfCommand<void> {
7978 }
8079
8180 name = match . name ;
82- } else {
83- // prompt the user for a name if one was not provided
84- name = await PromptUtils . promptUserToSelectComponent ( components ) ;
85- if ( ! name ) {
86- throw new Error ( messages . getMessage ( 'error.component' ) ) ;
87- }
8881 }
8982
9083 const dirname = path . dirname ( url . fileURLToPath ( import . meta. url ) ) ;
@@ -95,7 +88,7 @@ export default class LightningDevComponent extends SfCommand<void> {
9588 rootDir,
9689 mode : 'dev' ,
9790 port,
98- name : `c/${ name } ` ,
91+ name : name ? `c/${ name } ` : 'c/' ,
9992 namespacePaths,
10093 } ) ;
10194 }
You can’t perform that action at this time.
0 commit comments