@@ -59,11 +59,12 @@ export async function doSetup(setup: Setup, config: Config): Promise<void> {
5959 }
6060
6161 if ( platforms . includes ( IOS ) ) {
62- const defaultOutputDir = newConnectorYaml . generate . swiftSdk ?. outputDir ;
6362 const outputDir = await promptOnce ( {
6463 message : `What directory do you want to write your Swift SDK code to? (If not absolute, path will be relative to '${ connectorInfo . directory } ')` ,
6564 type : "input" ,
66- default : defaultOutputDir ,
65+ default :
66+ newConnectorYaml . generate . swiftSdk ?. outputDir ||
67+ `./../.dataconnect/generated/${ newConnectorYaml . connectorId } /swift-sdk` ,
6768 } ) ;
6869 const swiftSdk = { outputDir } ;
6970 newConnectorYaml . generate . swiftSdk = swiftSdk ;
@@ -72,7 +73,9 @@ export async function doSetup(setup: Setup, config: Config): Promise<void> {
7273 const outputDir = await promptOnce ( {
7374 message : `What directory do you want to write your JavaScript SDK code to? (If not absolute, path will be relative to '${ connectorInfo . directory } ')` ,
7475 type : "input" ,
75- default : newConnectorYaml . generate . javascriptSdk ?. outputDir ,
76+ default :
77+ newConnectorYaml . generate . javascriptSdk ?. outputDir ||
78+ `./../.dataconnect/generated/${ newConnectorYaml . connectorId } /javascript-sdk` ,
7679 } ) ;
7780 const pkg = await promptOnce ( {
7881 message : "What package name do you want to use for your JavaScript SDK?" ,
@@ -101,7 +104,9 @@ export async function doSetup(setup: Setup, config: Config): Promise<void> {
101104 const outputDir = await promptOnce ( {
102105 message : `What directory do you want to write your Kotlin SDK code to? (If not absolute, path will be relative to '${ connectorInfo . directory } ')` ,
103106 type : "input" ,
104- default : newConnectorYaml . generate . kotlinSdk ?. outputDir ,
107+ default :
108+ newConnectorYaml . generate . kotlinSdk ?. outputDir ||
109+ `./../.dataconnect/generated/${ newConnectorYaml . connectorId } /kotlin-sdk/src/main/kotlin/${ newConnectorYaml . connectorId } ` ,
105110 } ) ;
106111 const pkg = await promptOnce ( {
107112 message : "What package name do you want to use for your Kotlin SDK?" ,
0 commit comments