@@ -33,7 +33,7 @@ const OptionsSchema = v.strictObject({
3333 v . optional ( v . union ( [ v . picklist ( langs ) , v . boolean ( ) ] ) ) ,
3434 v . transform ( ( lang ) => langMap [ String ( lang ) ] )
3535 ) ,
36- integrations : v . boolean ( ) ,
36+ addOns : v . boolean ( ) ,
3737 install : v . boolean ( ) ,
3838 template : v . optional ( v . picklist ( templateChoices ) )
3939} ) ;
@@ -45,14 +45,14 @@ export const create = new Command('create')
4545 . addOption ( templateOption )
4646 . addOption ( langOption )
4747 . option ( '--no-types' )
48- . option ( '--no-integrations ' , 'skip interactive integration installer' )
48+ . option ( '--no-add-ons ' , 'skips interactive add-on installer' )
4949 . option ( '--no-install' , 'skip installing dependencies' )
5050 . configureHelp ( common . helpConfig )
5151 . action ( ( projectPath , opts ) => {
5252 const cwd = v . parse ( ProjectPathSchema , projectPath ) ;
5353 const options = v . parse ( OptionsSchema , opts ) ;
5454 common . runCommand ( async ( ) => {
55- const { directory, integrationNextSteps , packageManager } = await createProject ( cwd , options ) ;
55+ const { directory, addOnNextSteps , packageManager } = await createProject ( cwd , options ) ;
5656 const highlight = ( str : string ) => pc . bold ( pc . cyan ( str ) ) ;
5757
5858 let i = 1 ;
@@ -81,7 +81,7 @@ export const create = new Command('create')
8181 ] ;
8282
8383 p . box ( steps . join ( '\n' ) , 'Project next steps' ) ;
84- if ( integrationNextSteps ) p . box ( integrationNextSteps , 'Integration next steps' ) ;
84+ if ( addOnNextSteps ) p . box ( addOnNextSteps , 'Add-on next steps' ) ;
8585 } ) ;
8686 } ) ;
8787
@@ -152,30 +152,30 @@ async function createProject(cwd: string, options: Options) {
152152 p . log . success ( 'Project created' ) ;
153153
154154 let packageManager : AgentName | undefined | null ;
155- let integrationNextSteps : string | undefined ;
155+ let addOnNextSteps : string | undefined ;
156156 const installDeps = async ( ) => {
157157 packageManager = await common . packageManagerPrompt ( projectPath ) ;
158158 if ( packageManager ) await common . installDependencies ( packageManager , projectPath ) ;
159159 } ;
160160
161- if ( options . integrations ) {
161+ if ( options . addOns ) {
162162 // `runAddCommand` includes installing dependencies
163163 const { nextSteps, packageManager : pm } = await runAddCommand (
164164 { cwd : projectPath , install : options . install , preconditions : true , community : [ ] } ,
165165 [ ]
166166 ) ;
167167 packageManager = pm ;
168- integrationNextSteps = nextSteps ;
168+ addOnNextSteps = nextSteps ;
169169 } else if ( options . install ) {
170- // `--no-integrations ` was set, so we'll prompt to install deps manually
170+ // `--no-add-ons ` was set, so we'll prompt to install deps manually
171171 await installDeps ( ) ;
172172 }
173173
174- // no integrations were selected (which means the install prompt was skipped in `runAddCommand`),
174+ // no add-ons were selected (which means the install prompt was skipped in `runAddCommand`),
175175 // so we'll prompt to install
176176 if ( packageManager === null && options . install ) {
177177 await installDeps ( ) ;
178178 }
179179
180- return { directory : projectPath , integrationNextSteps , packageManager } ;
180+ return { directory : projectPath , addOnNextSteps , packageManager } ;
181181}
0 commit comments